public class TimeSinceChartResource extends SearchQueryBackedResource
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeSinceChartResource.TimeSinceChart
A simple bean contain all information required to render the Recently Created Chart
|
authenticationContext, chartUtils, permissionManager, QUERY_STRING, searchService| Constructor and Description |
|---|
TimeSinceChartResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
PermissionManager permissionManager,
ChartFactory chartFactory,
FieldManager fieldManager,
ResourceDateValidator resourceDateValidator,
VelocityRequestContextFactory velocityRequestContextFactory) |
TimeSinceChartResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
PermissionManager permissionManager,
ChartFactory chartFactory,
FieldManager fieldManager,
VelocityRequestContextFactory velocityRequestContextFactory,
ApplicationProperties applicationProperties) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
generateChart(javax.servlet.http.HttpServletRequest request,
String queryString,
String dateField,
String days,
String periodName,
boolean isCumulative,
int width,
int height,
boolean inline)
Generate a Time Since Chart Chart and returns a simple bean containing all relevent information
|
javax.ws.rs.core.Response |
validateChart(String queryString,
String dateField,
String days,
String periodName)
Ensures all parameters are valid for the Recently Created Chart
|
getFilterTitle, getFilterUrl, getSearchRequestAndValidatecreateErrorResponse, createIndexingUnavailableResponse, createValidationResponsepublic TimeSinceChartResource(ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, SearchService searchService, PermissionManager permissionManager, ChartFactory chartFactory, FieldManager fieldManager, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties)
public TimeSinceChartResource(ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, SearchService searchService, PermissionManager permissionManager, ChartFactory chartFactory, FieldManager fieldManager, ResourceDateValidator resourceDateValidator, VelocityRequestContextFactory velocityRequestContextFactory)
public javax.ws.rs.core.Response generateChart(@Context
javax.servlet.http.HttpServletRequest request,
String queryString,
String dateField,
String days,
String periodName,
boolean isCumulative,
int width,
int height,
boolean inline)
request - The current HTTPRequest. Needed for url generationqueryString - a filter id (starts with "filter-") or project id (starts with "project-")or jql (starts with
"jql-")dateField - The date field to calculate chart againstdays - The number of days previous to go back for. Must be positive.periodName - The name of the period. See - ChartFactory.PeriodNameisCumulative - Whether or not previous column is added the current column to give a total for the period.width - the width of the chart in pixels (defaults to 400px)height - the height of the chart in pixels (defaults to 250px)TimeSinceChartResource.TimeSinceChart if all params validated
else a Collection of ValidationErrorpublic javax.ws.rs.core.Response validateChart(String queryString, String dateField, String days, String periodName)
queryString - a filter id (starts with "filter-") or project id (starts with "project-").dateField - The date field to calculate chart againstdays - The number of days previous to go back for. Must be positive.periodName - The name of the period. See - ChartFactory.PeriodNameValidationError. Or empty list if no
errors.Copyright © 2002-2017 Atlassian. All Rights Reserved.