com.atlassian.jira.project.statistics
Interface StatisticType

All Superinterfaces:
java.util.Comparator
All Known Implementing Classes:
AbstractStatisticType

public interface StatisticType
extends java.util.Comparator

Interface for StatisticTypes.

See Also:
TypeOpenByAffectedVersion, TypeOpenByAssignee, TypeOpenByComponent, TypeOpenByFixVersion, TypeOpenByPriority, TypeStatus

Field Summary
static StatisticType OPEN_BY_AFFECTED_VERSION
           
static StatisticType OPEN_BY_ASSIGNEE
           
static StatisticType OPEN_BY_COMPONENT
           
static StatisticType OPEN_BY_FIX_VERSION
           
static StatisticType OPEN_BY_PRIORITY
           
static StatisticType STATUS
           
 
Method Summary
 void amendCollection(StatisticCollection statisticCollection, StatisticsUpdateEvent event)
          Amends the StatisticCollection dependent on the value of the StatisticsUpdateEvent
 StatisticCollection calculateStatisticsCollection(ProjectStatistics projectStats, GenericValue securityLevel)
          Calculate the statistics collection for the current StatisticType
 void decrementStatisticInCollectionWithSecurityType(StatisticCollection statCollection, Statistic statistic, GenericValue issue)
           
 void incrementStatisticInCollectionWithSecurityType(StatisticCollection statCollection, java.lang.String key, StatisticSecurityType statisticType, GenericValue issue)
           
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Field Detail

STATUS

public static final StatisticType STATUS

OPEN_BY_PRIORITY

public static final StatisticType OPEN_BY_PRIORITY

OPEN_BY_ASSIGNEE

public static final StatisticType OPEN_BY_ASSIGNEE

OPEN_BY_COMPONENT

public static final StatisticType OPEN_BY_COMPONENT

OPEN_BY_FIX_VERSION

public static final StatisticType OPEN_BY_FIX_VERSION

OPEN_BY_AFFECTED_VERSION

public static final StatisticType OPEN_BY_AFFECTED_VERSION
Method Detail

calculateStatisticsCollection

public StatisticCollection calculateStatisticsCollection(ProjectStatistics projectStats,
                                                         GenericValue securityLevel)
Calculate the statistics collection for the current StatisticType


amendCollection

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

Throws:
StatisticOutOfDateException

decrementStatisticInCollectionWithSecurityType

public void decrementStatisticInCollectionWithSecurityType(StatisticCollection statCollection,
                                                           Statistic statistic,
                                                           GenericValue issue)
                                                    throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException

incrementStatisticInCollectionWithSecurityType

public void incrementStatisticInCollectionWithSecurityType(StatisticCollection statCollection,
                                                           java.lang.String key,
                                                           StatisticSecurityType statisticType,
                                                           GenericValue issue)
                                                    throws StatisticOutOfDateException
Throws:
StatisticOutOfDateException