Class StatisticTypesProvider
java.lang.Object
com.atlassian.jira.gadgets.system.StatisticTypesProvider
Provides available values for stat types used by various gadgets
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticTypesProvider
(JiraAuthenticationContext authenticationContext, CustomFieldManager customFieldManager, com.atlassian.jira.gadgets.system.SystemStatisticTypesFactory systemStatisticTypesFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName
(String field) Returns the display name for a fieldgetStatsMapper
(String statsMapperKey) Get theStatisticsMapper
associated with passed key
-
Field Details
-
COMPONENTS
-
FIXFOR
-
ALLFIXFOR
-
VERSION
-
ALLVERSION
-
ASSIGNEES
-
ISSUETYPE
-
PRIORITIES
-
PROJECT
-
REPORTER
-
CREATOR
-
RESOLUTION
-
STATUSES
-
LABELS
-
-
Constructor Details
-
StatisticTypesProvider
@Autowired public StatisticTypesProvider(JiraAuthenticationContext authenticationContext, CustomFieldManager customFieldManager, com.atlassian.jira.gadgets.system.SystemStatisticTypesFactory systemStatisticTypesFactory)
-
-
Method Details
-
getStatsMapper
Get theStatisticsMapper
associated with passed key- Parameters:
statsMapperKey
- The key for the stats mapper. Usually a custom field id, or one of the constants in this class.- Returns:
- The StatisticsMapper associated with the passed in key.
-
getSystemStatisticTypes
- Returns:
- returns a map of all system stat mappers
-
getDisplayName
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
-