com.atlassian.jira.project.statistics.type
Class TypeOpenByComponent
java.lang.Object
com.atlassian.jira.project.statistics.type.AbstractStatisticType
com.atlassian.jira.project.statistics.type.AbstractOpenByStatisticType
com.atlassian.jira.project.statistics.type.AbstractOpenByNodeAssocStatisticType
com.atlassian.jira.project.statistics.type.TypeOpenByComponent
- All Implemented Interfaces:
- java.util.Comparator, StatisticType
- public class TypeOpenByComponent
- extends AbstractOpenByNodeAssocStatisticType
This StatisticType
is used to get the statistics of Open Issues by Component
Method Summary |
protected boolean |
doIssueConditionsMeet(GenericValue issue)
Checks that any conditions that are placed on the issue for this Statistic Type are met. |
protected java.util.Collection |
getAssociatedEntities(GenericValue project)
Get all the Components for the passed in project |
protected java.lang.String |
getAssociationName()
This is the name of the association between the issue and the entity. |
protected java.lang.String |
getFieldName()
This is the name of the field that will be 'grouped' for the statistic. |
protected SearchParameter |
getNullEntityParameter()
Return a search parameter which will filter out any issues with this entity associated. |
Methods inherited from class com.atlassian.jira.project.statistics.type.AbstractOpenByNodeAssocStatisticType |
amendCollectionForCreateUnresolved, amendCollectionForDeleteUnresolved, amendCollectionForUpdateGottenResolved, amendCollectionForUpdateGottenUnresolved, amendCollectionForUpdateStayedUnresolved, calculateAssigneeStatisticsCollection, calculateReporterStatisticsCollection, compare, equals, getEntities, getIssueEntities, getIssues, getKey, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TypeOpenByComponent
public TypeOpenByComponent()
getAssociatedEntities
protected java.util.Collection getAssociatedEntities(GenericValue project)
throws GenericEntityException
- Get all the Components for the passed in project
- Specified by:
getAssociatedEntities
in class AbstractOpenByNodeAssocStatisticType
- Throws:
GenericEntityException
doIssueConditionsMeet
protected boolean doIssueConditionsMeet(GenericValue issue)
- Description copied from class:
AbstractOpenByNodeAssocStatisticType
- Checks that any conditions that are placed on the issue for this Statistic Type are met. This should be
overridden by sub type. This is used for null entities
- Specified by:
doIssueConditionsMeet
in class AbstractOpenByNodeAssocStatisticType
getNullEntityParameter
protected SearchParameter getNullEntityParameter()
- Description copied from class:
AbstractOpenByNodeAssocStatisticType
- Return a search parameter which will filter out any issues with this entity associated.
For example with components, this parameter should return issues with no attached components.
- Specified by:
getNullEntityParameter
in class AbstractOpenByNodeAssocStatisticType
getAssociationName
protected java.lang.String getAssociationName()
- Description copied from class:
AbstractOpenByNodeAssocStatisticType
- This is the name of the association between the issue and the entity.
- Specified by:
getAssociationName
in class AbstractOpenByNodeAssocStatisticType
getFieldName
protected java.lang.String getFieldName()
- Description copied from class:
AbstractStatisticType
- This is the name of the field that will be 'grouped' for the statistic.
- Specified by:
getFieldName
in class AbstractStatisticType