|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pyxis.greenhopper.gadget.AbstractGadgetResource
com.pyxis.greenhopper.gadget.ChartDataResource
public class ChartDataResource
Generation and validation resource for chart gadgets
TODO unify validation code
Nested Class Summary | |
---|---|
static class |
ChartDataResource.ChartCurveData
|
static class |
ChartDataResource.ChartData
|
static class |
ChartDataResource.ChartInfo
|
static class |
ChartDataResource.ContextInfo10
|
static class |
ChartDataResource.DataPoint
|
static class |
ChartDataResource.LegendEntry
|
Field Summary | |
---|---|
protected static java.lang.String |
CHART_TYPE
|
protected static java.lang.String |
CONTEXT_ID
|
protected static java.lang.String |
CONTEXTS
|
protected static java.lang.String |
FIELD_ID
|
protected static java.lang.String |
NO_VALUE
|
protected static java.lang.String |
PROJECT_ID
|
protected static java.lang.String |
PROJECT_KEY
Legacy, here to make validation on hour burndown gadget work. |
protected static java.lang.String |
VERSION_ID
|
protected static java.lang.String |
VERSIONS
Legacy, here to make validation on hour burndown gadget work. |
Fields inherited from class com.pyxis.greenhopper.gadget.AbstractGadgetResource |
---|
PROJECT_PREFIX |
Constructor Summary | |
---|---|
ChartDataResource(com.atlassian.jira.project.ProjectManager projectManager,
com.atlassian.jira.security.PermissionManager permissionManager,
com.atlassian.jira.project.version.VersionManager versionManager,
com.atlassian.jira.security.JiraAuthenticationContext authenticationContext,
GreenHopperLicenseManager ghLicense,
HourBurndownChartService chartService,
GHVersionService iterationService)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
generate(javax.servlet.http.HttpServletRequest request,
java.lang.String projectIdString,
java.lang.String versionIdString,
java.lang.String contextId,
java.lang.String contexts,
java.lang.String watchedFieldId,
java.lang.String chartType)
|
javax.ws.rs.core.Response |
generateHourburndown(javax.servlet.http.HttpServletRequest request,
java.lang.String projectIdString,
java.lang.String versionIdString,
java.lang.String contexts,
java.lang.String chartType)
Legacy method for the hourburndown gadget |
com.pyxis.greenhopper.gadget.ChartDataResource.ChartCurveDataProvider |
getChartCurveInputProvider(BoardContext boardContext,
java.lang.String chartType,
java.lang.String watchedFieldId)
Get the right ChartCurveDataProvider for a given chart type. |
javax.ws.rs.core.Response |
validate(javax.servlet.http.HttpServletRequest request,
java.lang.String projectId,
java.lang.String versionId,
java.lang.String contextId,
java.lang.String contexts,
java.lang.String watchedFieldId)
New Validation method, uses correct field names |
javax.ws.rs.core.Response |
validateHourburndown(javax.servlet.http.HttpServletRequest request,
java.lang.String projectKey,
java.lang.String versionString,
java.lang.String contexts)
Legacy method for the hourburndown gadget. |
Methods inherited from class com.pyxis.greenhopper.gadget.AbstractGadgetResource |
---|
createErrorResponse, createIndexingUnavailableResponse, createOkResponse, createValidationResponse, response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PROJECT_KEY
protected static final java.lang.String PROJECT_ID
protected static final java.lang.String VERSIONS
protected static final java.lang.String VERSION_ID
protected static final java.lang.String CONTEXTS
protected static final java.lang.String CONTEXT_ID
protected static final java.lang.String CHART_TYPE
protected static final java.lang.String FIELD_ID
protected static final java.lang.String NO_VALUE
Constructor Detail |
---|
public ChartDataResource(com.atlassian.jira.project.ProjectManager projectManager, com.atlassian.jira.security.PermissionManager permissionManager, com.atlassian.jira.project.version.VersionManager versionManager, com.atlassian.jira.security.JiraAuthenticationContext authenticationContext, GreenHopperLicenseManager ghLicense, HourBurndownChartService chartService, GHVersionService iterationService)
Method Detail |
---|
public javax.ws.rs.core.Response validateHourburndown(@Context javax.servlet.http.HttpServletRequest request, java.lang.String projectKey, java.lang.String versionString, java.lang.String contexts)
request
- http data.projectKey
- Key for project being queriedversionString
- Version name,
malformed version names are treated as errors.
if empty then the next available version is taken.contexts
- Comma-delimited list of context names,
malformed context names get treated as the default context
if empty then the default context is used.
duplicate contexts are ignored.
public javax.ws.rs.core.Response validate(@Context javax.servlet.http.HttpServletRequest request, java.lang.String projectId, java.lang.String versionId, java.lang.String contextId, java.lang.String contexts, java.lang.String watchedFieldId)
public javax.ws.rs.core.Response generateHourburndown(@Context javax.servlet.http.HttpServletRequest request, java.lang.String projectIdString, java.lang.String versionIdString, java.lang.String contexts, java.lang.String chartType)
request
- projectIdString
- versionIdString
- contexts
- chartType
- public javax.ws.rs.core.Response generate(@Context javax.servlet.http.HttpServletRequest request, java.lang.String projectIdString, java.lang.String versionIdString, java.lang.String contextId, java.lang.String contexts, java.lang.String watchedFieldId, java.lang.String chartType)
request
- http data.projectIdString
- Key for project being queriedversionIdString
- Version name,
malformed version names are treated as errors.
if empty then the next available version is taken.contexts
- Comma-delimited list of context names,
malformed context names get treated as the default context
if empty then the default context is used.
duplicate contexts are ignored.
public com.pyxis.greenhopper.gadget.ChartDataResource.ChartCurveDataProvider getChartCurveInputProvider(BoardContext boardContext, java.lang.String chartType, java.lang.String watchedFieldId)
boardContext
- chartType
- watchedFieldId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |