Interface StatisticsFieldService
- All Superinterfaces:
GreenHopperCache
- All Known Implementing Classes:
StatisticsFieldServiceImpl
Provides access to
StatisticsFieldConfig
and StatisticsFieldInstance
.- Author:
- mtokar
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list ofStatisticsFieldConfig
s which are available to be used in aRapidView
.Returns the list ofStatisticsFieldInstance
s which represent the availableStatisticsFieldConfig
s.Returns the defaultStatisticsFieldConfig
to use.Returns theStatisticsFieldInstance
representing the specifiedStatisticsFieldConfig
.void
invalidate
(RapidView rapidView) loadStatisticsField
(RapidView rapidView) loadStatisticsFieldInstance
(RapidView rapidView) updateStatisticsField
(com.atlassian.jira.user.ApplicationUser user, ErrorCollection errors, RapidView rapidView, StatisticsFieldConfig statisticsField) Methods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
-
Method Details
-
getDefaultStatisticsFieldConfig
StatisticsFieldConfig getDefaultStatisticsFieldConfig()Returns the defaultStatisticsFieldConfig
to use.- Returns:
- the instance
-
getAvailableStatisticsFieldConfigs
List<StatisticsFieldConfig> getAvailableStatisticsFieldConfigs()Returns the list ofStatisticsFieldConfig
s which are available to be used in aRapidView
.- Returns:
- the list; never null.
-
getAvailableStatisticsFields
List<StatisticsFieldInstance> getAvailableStatisticsFields()Returns the list ofStatisticsFieldInstance
s which represent the availableStatisticsFieldConfig
s.- Returns:
- the list; never null.
- See Also:
-
getInstanceOfField
Returns theStatisticsFieldInstance
representing the specifiedStatisticsFieldConfig
. If the config is somehow invalid, for example if the field in the config refers to a non-existent field, an instance will still be returned which is the minimal implementation of aStatisticsFieldInstance
- that is, it contains only a reference to the config. In addition to this, an error is returned in theServiceOutcome
.- Parameters:
config
- the configuration to construct the instance from- Returns:
- the result; will always have a
ServiceOutcome.getValue()
, and sometimesServiceOutcome.getErrors()
.
-
updateStatisticsField
@Transactional StatisticsFieldConfig updateStatisticsField(com.atlassian.jira.user.ApplicationUser user, ErrorCollection errors, RapidView rapidView, StatisticsFieldConfig statisticsField) -
loadStatisticsField
-
loadStatisticsFieldInstance
-
invalidate
-