com.atlassian.greenhopper.service.issue.callback
Class ColumnStatisticsCallbackFactory

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.ColumnStatisticsCallbackFactory

@Service
public class ColumnStatisticsCallbackFactory
extends java.lang.Object


Constructor Summary
ColumnStatisticsCallbackFactory()
           
 
Method Summary
 com.atlassian.fugue.Option<AbstractColumnStatisticsCallback> createCallback(RapidView rapidView)
          Constructs the appropriate column statistic callback based on the given RapidView.
 AbstractColumnStatisticsCallback createCallback(RapidView rapidView, StatisticsFieldConfig statisticsField)
          Constructs the appropriate column statistic callback based on the given RapidView and StatisticsFieldConfig.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnStatisticsCallbackFactory

public ColumnStatisticsCallbackFactory()
Method Detail

createCallback

@Nonnull
public com.atlassian.fugue.Option<AbstractColumnStatisticsCallback> createCallback(RapidView rapidView)
Constructs the appropriate column statistic callback based on the given RapidView.

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(com.atlassian.greenhopper.model.rapid.RapidView, com.atlassian.greenhopper.model.rapid.StatisticsFieldConfig)

createCallback

@Nonnull
public AbstractColumnStatisticsCallback createCallback(RapidView rapidView,
                                                               StatisticsFieldConfig statisticsField)
Constructs the appropriate column statistic callback based on the given RapidView and StatisticsFieldConfig.

Parameters:
rapidView - the rapid board
statisticsField - the statistics field configured for that board
Returns:
the callback
Throws:
java.lang.IllegalArgumentException - if the type of the StatisticsFieldConfig is not valid for creating a callback


Copyright © 2007-2014 Atlassian. All Rights Reserved.