Class ColumnStatisticsCallbackFactory
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.ColumnStatisticsCallbackFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<AbstractColumnStatisticsCallback>createCallback(RapidView rapidView) Constructs the appropriate column statistic callback based on the givenRapidView.createCallback(RapidView rapidView, StatisticsFieldConfig statisticsField) Constructs the appropriate column statistic callback based on the givenRapidViewandStatisticsFieldConfig.
-
Constructor Details
-
ColumnStatisticsCallbackFactory
public ColumnStatisticsCallbackFactory()
-
-
Method Details
-
createCallback
@Nonnull public io.atlassian.fugue.Option<AbstractColumnStatisticsCallback> createCallback(RapidView rapidView) Constructs the appropriate column statistic callback based on the givenRapidView.- Parameters:
rapidView- the rapid view- Returns:
- None if the configured column constraint is invalid or is "None"; otherwise the callback for the configured column constraint.
- See Also:
-
createCallback
@Nonnull public AbstractColumnStatisticsCallback createCallback(RapidView rapidView, StatisticsFieldConfig statisticsField) Constructs the appropriate column statistic callback based on the givenRapidViewandStatisticsFieldConfig.- Parameters:
rapidView- the rapid boardstatisticsField- the statistics field configured for that board- Returns:
- the callback
- Throws:
IllegalArgumentException- if the type of theStatisticsFieldConfigis not valid for creating a callback
-