public class StatsResource extends SearchQueryBackedResource
Modifier and Type | Class and Description |
---|---|
static class |
StatsResource.Results |
static class |
StatsResource.StatsRow |
chartUtils, permissionManager, QUERY_STRING, searchService
Constructor and Description |
---|
StatsResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
SearchRequestService searchRequestService,
PermissionManager permissionManager,
StatisticTypesProvider statisticTypesProvider,
ProjectManager projectManager,
VelocityRequestContextFactory velocityRequestContextFactory,
FieldValueToDisplayTransformer<StatsMarkup> fieldValueToDisplayTransformer) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getData(String queryString,
String statType,
boolean includeResolvedIssues,
String sortDirection,
String sortBy)
Return a Response containing a Results bean for the given query.
|
protected com.atlassian.jira.gadgets.system.StatsSearchUrlBuilder |
getHeadingUrlBuilder() |
protected StatisticAccessorBean |
getStatisticsAcessorBean(SearchRequest searchRequest) |
void |
setGenerator(FilterStatisticsValuesGenerator generator) |
javax.ws.rs.core.Response |
validate(String queryString,
String statType)
Check that the queryString referes to a valid search criteria and that the statType refers to a known statistic
type.
|
getFilterTitle, getFilterUrl, getSearchRequestAndValidate
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
public StatsResource(ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, SearchService searchService, SearchRequestService searchRequestService, PermissionManager permissionManager, StatisticTypesProvider statisticTypesProvider, ProjectManager projectManager, VelocityRequestContextFactory velocityRequestContextFactory, FieldValueToDisplayTransformer<StatsMarkup> fieldValueToDisplayTransformer)
public javax.ws.rs.core.Response validate(String queryString, String statType)
public void setGenerator(FilterStatisticsValuesGenerator generator)
public javax.ws.rs.core.Response getData(String queryString, String statType, boolean includeResolvedIssues, String sortDirection, String sortBy)
protected StatisticAccessorBean getStatisticsAcessorBean(SearchRequest searchRequest)
protected com.atlassian.jira.gadgets.system.StatsSearchUrlBuilder getHeadingUrlBuilder()
Copyright © 2002-2019 Atlassian. All Rights Reserved.