public class PieChartResource extends SearchQueryBackedResource
Modifier and Type | Class and Description |
---|---|
static class |
PieChartResource.DataRow |
static class |
PieChartResource.PieChart
A simple bean contain all information required to render the Pie Chart
|
chartUtils, permissionManager, QUERY_STRING, searchService
Constructor and Description |
---|
PieChartResource(ChartFactory chartFactory,
ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager,
StatisticTypesProvider statisticTypesProvider,
SearchService searchService,
VelocityRequestContextFactory velocityRequestContextFactory) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getPieChart(String queryString,
String statType,
boolean returnData,
int width,
int height,
boolean inline)
Generate a pie chart and returns a simple bean containing all relievent information
|
javax.ws.rs.core.Response |
validatePieChart(String queryString,
String statType)
Ensures all parameters are valid for the Pie Chart
|
getFilterTitle, getFilterUrl, getSearchRequestAndValidate
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
public PieChartResource(ChartFactory chartFactory, ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, StatisticTypesProvider statisticTypesProvider, SearchService searchService, VelocityRequestContextFactory velocityRequestContextFactory)
public javax.ws.rs.core.Response getPieChart(String queryString, String statType, boolean returnData, int width, int height, boolean inline)
queryString
- a filter id (starts with "filter-") or project id (starts with "project-") or jql (starts with
"jql-")statType
- a valid statistic type. See StatisticTypesResource
returnData
- whther or not to return the datawidth
- the width of the chart in pixels (defaults to 400px)height
- the height of the chart in pixels (defaults to 250px)PieChartResource.PieChart
if all params validated else a Collection of ValidationError
public javax.ws.rs.core.Response validatePieChart(String queryString, String statType)
queryString
- a filter id (starts with "filter-") or project id (starts with "project-") or jql (starts with
"jql-")statType
- a valid statistic type. See StatisticTypesResource
ValidationError
. Or empty list if no
errors.Copyright © 2002-2018 Atlassian. All Rights Reserved.