com.atlassian.jira.gadgets.system
Class TwoDimensionalStatsResource
java.lang.Object
com.atlassian.jira.gadgets.system.AbstractResource
com.atlassian.jira.gadgets.system.SearchQueryBackedResource
com.atlassian.jira.gadgets.system.TwoDimensionalStatsResource
public class TwoDimensionalStatsResource
- extends SearchQueryBackedResource
REST endpoint to validate and retreive a two dimensional stats resource.
- Since:
- v4.0
Constructor Summary |
TwoDimensionalStatsResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
PermissionManager permissionManager,
StatisticTypesResource statisticTypesResource,
SearchProvider searchProvider,
VelocityRequestContextFactory velocityRequestContextFactory,
IssueIndexManager issueIndexManager,
FieldValueToDisplayTransformer<StatsMarkup> fieldValueToDisplayTransformer,
FieldManager fieldManager,
FieldVisibilityManager fieldVisibilityManager,
ApplicationProperties applicationProperties,
ReaderCache readerCache)
|
Method Summary |
protected TwoDimensionalStatsMap |
getAndPopulateTwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
StatisticsMapper yAxisMapper,
SearchRequest searchRequest)
|
javax.ws.rs.core.Response |
getStats(String queryString,
String xStatType,
String yStatType,
String sortDirection,
String sortBy,
boolean showTotals,
String numberToShowStr)
Generate a two dimensional statistics view of a filter |
protected com.atlassian.jira.gadgets.system.StatsSearchUrlBuilder |
getStatsSearchUrlBuilder()
|
javax.ws.rs.core.Response |
validate(String queryString,
String xStatType,
String yStatType,
String numberToShow)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwoDimensionalStatsResource
public TwoDimensionalStatsResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
PermissionManager permissionManager,
StatisticTypesResource statisticTypesResource,
SearchProvider searchProvider,
VelocityRequestContextFactory velocityRequestContextFactory,
IssueIndexManager issueIndexManager,
FieldValueToDisplayTransformer<StatsMarkup> fieldValueToDisplayTransformer,
FieldManager fieldManager,
FieldVisibilityManager fieldVisibilityManager,
ApplicationProperties applicationProperties,
ReaderCache readerCache)
validate
public javax.ws.rs.core.Response validate(String queryString,
String xStatType,
String yStatType,
String numberToShow)
getStats
public javax.ws.rs.core.Response getStats(String queryString,
String xStatType,
String yStatType,
String sortDirection,
String sortBy,
boolean showTotals,
String numberToShowStr)
- Generate a two dimensional statistics view of a filter
- Parameters:
queryString
- a filter id (starts with "filter-", or just the number)xStatType
- The stat to group by on the x axisyStatType
- The stat to group by on the y axissortBy
- The field with which to order the statsshowTotals
- Include additional rows / columns that include the total number of issue for x / y axis
and totalssortDirection
- Ascending or descending sortnumberToShowStr
- Maximum number of results to display on the y-axis. 0 represents unlimited.
- Returns:
- a
TwoDimensionalStatsResource.TwoDimensionalProperties
if all
params validate else a Collection of ValidationError
getAndPopulateTwoDimensionalStatsMap
protected TwoDimensionalStatsMap getAndPopulateTwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
StatisticsMapper yAxisMapper,
SearchRequest searchRequest)
getStatsSearchUrlBuilder
protected com.atlassian.jira.gadgets.system.StatsSearchUrlBuilder getStatsSearchUrlBuilder()
Copyright © 2002-2013 Atlassian. All Rights Reserved.