com.atlassian.jira.gadgets.system
Class StatisticTypesResource

java.lang.Object
  extended by com.atlassian.jira.gadgets.system.StatisticTypesResource

public class StatisticTypesResource
extends Object

REST resource for retreiving and validating Statistic Types.

Since:
v4.0

Nested Class Summary
static class StatisticTypesResource.MapEntry
           
static class StatisticTypesResource.StatName
           
static class StatisticTypesResource.StatTypeCollection
           
 
Field Summary
static String ALLFIXFOR
           
static String ALLVERSION
           
static String ASSIGNEES
           
static String COMPONENTS
           
static String CREATOR
           
static String FIXFOR
           
static String ISSUETYPE
           
static String LABELS
           
static String PRIORITIES
           
static String PROJECT
           
static String REPORTER
           
static String RESOLUTION
           
static String STATUSES
           
protected static Map<String,String> systemValues
           
static String VERSION
           
 
Constructor Summary
StatisticTypesResource(CustomFieldManager customFieldManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
           
 
Method Summary
 javax.ws.rs.core.Response getAxies()
          Retreive all available Statistic Types in JIRA.
 String getDisplayName(String field)
          Returns the display name for a field
 StatisticsMapper getStatsMapper(String statsMapperKey)
          Get the StatisticsMapper associated with passed key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENTS

public static final String COMPONENTS
See Also:
Constant Field Values

FIXFOR

public static final String FIXFOR
See Also:
Constant Field Values

ALLFIXFOR

public static final String ALLFIXFOR
See Also:
Constant Field Values

VERSION

public static final String VERSION
See Also:
Constant Field Values

ALLVERSION

public static final String ALLVERSION
See Also:
Constant Field Values

ASSIGNEES

public static final String ASSIGNEES
See Also:
Constant Field Values

ISSUETYPE

public static final String ISSUETYPE
See Also:
Constant Field Values

PRIORITIES

public static final String PRIORITIES
See Also:
Constant Field Values

PROJECT

public static final String PROJECT
See Also:
Constant Field Values

REPORTER

public static final String REPORTER
See Also:
Constant Field Values

CREATOR

public static final String CREATOR
See Also:
Constant Field Values

RESOLUTION

public static final String RESOLUTION
See Also:
Constant Field Values

STATUSES

public static final String STATUSES
See Also:
Constant Field Values

LABELS

public static final String LABELS
See Also:
Constant Field Values

systemValues

protected static final Map<String,String> systemValues
Constructor Detail

StatisticTypesResource

public StatisticTypesResource(CustomFieldManager customFieldManager,
                              JiraAuthenticationContext authenticationContext,
                              PermissionManager permissionManager)
Method Detail

getAxies

public javax.ws.rs.core.Response getAxies()
Retreive all available Statistic Types in JIRA. Both System and Custom Fields.

Returns:
A collection key/value pairs StatisticTypesResource.MapEntry

getDisplayName

public String getDisplayName(String field)
Returns the display name for a field

Parameters:
field - The field to get the displayable name for
Returns:
A human consumable name for the field

getStatsMapper

public StatisticsMapper getStatsMapper(String statsMapperKey)
Get the StatisticsMapper associated with passed key

Parameters:
statsMapperKey - The key for the statsmapper. Usually a customfield id, or one of the constants in this class
Returns:
The StatisticsMapper associated with the passed in key.


Copyright © 2002-2014 Atlassian. All Rights Reserved.