public class TwoDimensionalStatsResource extends SearchQueryBackedResource
Modifier and Type | Class and Description |
---|---|
static class |
TwoDimensionalStatsResource.Cell |
static class |
TwoDimensionalStatsResource.FilterProperties |
static class |
TwoDimensionalStatsResource.Row |
static class |
TwoDimensionalStatsResource.TwoDimensionalProperties |
authenticationContext, chartUtils, permissionManager, QUERY_STRING, searchService
Constructor and Description |
---|
TwoDimensionalStatsResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
PermissionManager permissionManager,
StatisticTypesProvider statisticTypesProvider,
SearchProvider searchProvider,
VelocityRequestContextFactory velocityRequestContextFactory,
FieldValueToDisplayTransformer<StatsMarkup> fieldValueToDisplayTransformer,
FieldManager fieldManager,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache) |
Modifier and Type | Method and Description |
---|---|
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,
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) |
getFilterTitle, getFilterUrl, getSearchRequestAndValidate
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
public TwoDimensionalStatsResource(ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, SearchService searchService, PermissionManager permissionManager, StatisticTypesProvider statisticTypesProvider, SearchProvider searchProvider, VelocityRequestContextFactory velocityRequestContextFactory, FieldValueToDisplayTransformer<StatsMarkup> fieldValueToDisplayTransformer, FieldManager fieldManager, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache)
public javax.ws.rs.core.Response validate(String queryString, String xStatType, String yStatType, String numberToShow)
public javax.ws.rs.core.Response getStats(String queryString, String xStatType, String yStatType, String sortDirection, String sortBy, String numberToShowStr)
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 statssortDirection
- Ascending or descending sortnumberToShowStr
- Maximum number of results to display on the y-axis. 0 represents unlimited.TwoDimensionalStatsResource.TwoDimensionalProperties
if all
params validate else a Collection of ValidationError
protected TwoDimensionalStatsMap getAndPopulateTwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, SearchRequest searchRequest)
protected com.atlassian.jira.gadgets.system.StatsSearchUrlBuilder getStatsSearchUrlBuilder()
Copyright © 2002-2019 Atlassian. All Rights Reserved.