|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.atlassian.jira.project.statistics.type.AbstractNodeAssocStatisticType
This is an abstract class that contains some common functionality for Node Associated StatisticTypes. Each StatisticType that is Node Associated should extend this class
Field Summary |
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 | |
AbstractNodeAssocStatisticType()
|
Method Summary | |
void |
amendCollection(StatisticCollection statisticCollection,
StatisticsUpdateEvent event)
Amends the StatisticCollection dependent on the value of the StatisticsUpdateEvent |
StatisticCollection |
calculateStatisticsCollection(ProjectStatistics projectStats,
org.ofbiz.core.entity.GenericValue securityLevel)
Calculate the statistics collection for the current StatisticType
|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Alphatetic Comparator to sort 2 objects alphabetically |
protected abstract boolean |
doIssueConditionsMeet(org.ofbiz.core.entity.GenericValue issue)
Checks that any conditions that are placed on the issue for this Statistic Type are met. |
boolean |
equals(java.lang.Object o)
|
protected abstract java.util.Collection |
getAssociatedEntities(org.ofbiz.core.entity.GenericValue project)
Gets a list of the entities associated with the project. |
protected abstract java.lang.String |
getAssociationName()
This is the name of the association between the issue and the entity. |
protected abstract java.lang.String |
getFieldName()
|
protected abstract SearchParameter |
getNullEntityParameter()
Return a search parameter which will filter out any issues with this entity associated. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractNodeAssocStatisticType()
Method Detail |
protected abstract java.lang.String getAssociationName()
protected abstract java.lang.String getFieldName()
protected abstract java.util.Collection getAssociatedEntities(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
protected abstract boolean doIssueConditionsMeet(org.ofbiz.core.entity.GenericValue issue)
public StatisticCollection calculateStatisticsCollection(ProjectStatistics projectStats, org.ofbiz.core.entity.GenericValue securityLevel)
StatisticType
A List of the associated entities for this statistic type are retrieved
for the project of the ProjectStatistics
object. These associated entities can be
components, fix versions etc.
For each of these entities all the issues are retrieved and for every issue that
has the same security level and matches the criteria specified in the doIssueConditionsMeet
method then 1 is added to the StatisticCollection
calculateStatisticsCollection
in interface StatisticType
protected abstract SearchParameter getNullEntityParameter()
public void amendCollection(StatisticCollection statisticCollection, StatisticsUpdateEvent event)
StatisticCollection
dependent on the value of the StatisticsUpdateEvent
amendCollection
in interface StatisticType
#amendCollectionForCreate
,
#amendCollectionForUpdate
,
#amendCollectionForDelete
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public boolean equals(java.lang.Object o)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |