com.atlassian.jira.project.statistics
Class SecurityStatistic

java.lang.Object
  extended bycom.atlassian.jira.project.statistics.SecurityStatistic

public class SecurityStatistic
extends java.lang.Object

This class holds a Map of StatisticCollection objects for a particular ProjectStatistics object and Security Level


Constructor Summary
SecurityStatistic(ProjectStatistics projectStats, GenericValue securityLevel)
          This constructor creates a new Map of StatisticCollection objects for the ProjectStatistics object and Security Level
 
Method Summary
 boolean equals(java.lang.Object o)
           
 GenericValue getSecurityLevel()
           
 StatisticCollection getStatisticCollection(StatisticType statisticType)
          Gets the StatisticCollection object for this StatisticType from the Map
 java.util.Map getStatisticCollections()
          Returns the map of all StatisticCollection objects for a particular ProjectStatistics object and Security Level
 int hashCode()
           
 java.lang.String toString()
           
 void updateStatistics(StatisticsUpdateEvent event)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityStatistic

public SecurityStatistic(ProjectStatistics projectStats,
                         GenericValue securityLevel)
This constructor creates a new Map of StatisticCollection objects for the ProjectStatistics object and Security Level

It gets a list of the different StatisticType objects and loops through each of these. For each StatisticType it generates a StatisticCollection object and puts this collection into the Map

Method Detail

getStatisticCollection

public StatisticCollection getStatisticCollection(StatisticType statisticType)
Gets the StatisticCollection object for this StatisticType from the Map


getStatisticCollections

public java.util.Map getStatisticCollections()
Returns the map of all StatisticCollection objects for a particular ProjectStatistics object and Security Level


equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

toString

public java.lang.String toString()

updateStatistics

public void updateStatistics(StatisticsUpdateEvent event)

getSecurityLevel

public GenericValue getSecurityLevel()