com.atlassian.jira.project.statistics.type
Class AbstractOpenByStatisticType

java.lang.Object
  extended bycom.atlassian.jira.project.statistics.type.AbstractStatisticType
      extended bycom.atlassian.jira.project.statistics.type.AbstractOpenByStatisticType
All Implemented Interfaces:
java.util.Comparator, StatisticType
Direct Known Subclasses:
AbstractOpenByFieldStatisticType, AbstractOpenByNodeAssocStatisticType

public abstract class AbstractOpenByStatisticType
extends AbstractStatisticType


Field Summary
protected static int CHANGED_RESOLUTION
           
protected static int GOTTEN_RESOLVED
           
protected static int GOTTEN_UNRESOLVED
           
protected static int STAYED_RESOLVED
           
protected static int STAYED_UNRESOLVED
           
 
Fields inherited from interface com.atlassian.jira.project.statistics.StatisticType
OPEN_BY_AFFECTED_VERSION, OPEN_BY_ASSIGNEE, OPEN_BY_COMPONENT, OPEN_BY_FIX_VERSION, OPEN_BY_PRIORITY, STATUS
 
Constructor Summary
AbstractOpenByStatisticType()
           
 
Method Summary
 void amendCollection(StatisticCollection statisticCollection, StatisticsUpdateEvent event)
          Amends the StatisticCollection dependent on the value of the StatisticsUpdateEvent
protected abstract  void amendCollectionForCreateUnresolved(StatisticCollection statisticsCollection, StatisticsUpdateEvent event)
           
protected abstract  void amendCollectionForDeleteUnresolved(StatisticCollection statisticsCollection, StatisticsUpdateEvent event)
           
protected abstract  void amendCollectionForUpdateGottenResolved(StatisticCollection statisticsCollection, StatisticsUpdateEvent event)
           
protected abstract  void amendCollectionForUpdateGottenUnresolved(StatisticCollection statisticsCollection, StatisticsUpdateEvent event)
           
protected abstract  void amendCollectionForUpdateStayedUnresolved(StatisticCollection statisticsCollection, StatisticsUpdateEvent event)
           
protected  int getResolutionTransitionState(StatisticsUpdateEvent event)
           
 
Methods inherited from class com.atlassian.jira.project.statistics.type.AbstractStatisticType
calculateStatisticsCollection, decrementStatisticInCollection, decrementStatisticInCollectionWithSecurityType, getEntities, getFieldName, getIssues, getKey, incrementStatisticInCollection, incrementStatisticInCollectionWithSecurityType, isResolved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Field Detail

CHANGED_RESOLUTION

protected static final int CHANGED_RESOLUTION
See Also:
Constant Field Values

GOTTEN_RESOLVED

protected static final int GOTTEN_RESOLVED
See Also:
Constant Field Values

GOTTEN_UNRESOLVED

protected static final int GOTTEN_UNRESOLVED
See Also:
Constant Field Values

STAYED_RESOLVED

protected static final int STAYED_RESOLVED
See Also:
Constant Field Values

STAYED_UNRESOLVED

protected static final int STAYED_UNRESOLVED
See Also:
Constant Field Values
Constructor Detail

AbstractOpenByStatisticType

public AbstractOpenByStatisticType()
Method Detail

amendCollection

public void amendCollection(StatisticCollection statisticCollection,
                            StatisticsUpdateEvent event)
                     throws StatisticOutOfDateException
Amends the StatisticCollection dependent on the value of the StatisticsUpdateEvent

Throws:
StatisticOutOfDateException

getResolutionTransitionState

protected int getResolutionTransitionState(StatisticsUpdateEvent event)

amendCollectionForCreateUnresolved

protected abstract void amendCollectionForCreateUnresolved(StatisticCollection statisticsCollection,
                                                           StatisticsUpdateEvent event)
                                                    throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException

amendCollectionForDeleteUnresolved

protected abstract void amendCollectionForDeleteUnresolved(StatisticCollection statisticsCollection,
                                                           StatisticsUpdateEvent event)
                                                    throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException

amendCollectionForUpdateGottenResolved

protected abstract void amendCollectionForUpdateGottenResolved(StatisticCollection statisticsCollection,
                                                               StatisticsUpdateEvent event)
                                                        throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException

amendCollectionForUpdateGottenUnresolved

protected abstract void amendCollectionForUpdateGottenUnresolved(StatisticCollection statisticsCollection,
                                                                 StatisticsUpdateEvent event)
                                                          throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException

amendCollectionForUpdateStayedUnresolved

protected abstract void amendCollectionForUpdateStayedUnresolved(StatisticCollection statisticsCollection,
                                                                 StatisticsUpdateEvent event)
                                                          throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException