Interface TimeMetricConditionFactory
@PublicSpi
public interface TimeMetricConditionFactory
Generates conditions
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends TimeMetricHitCondition>
getAllHitConditions
(com.atlassian.jira.project.Project project) Get all conditions applicable for a given projectList<? extends TimeMetricMatchCondition>
getAllMatchConditions
(com.atlassian.jira.project.Project project) Get all conditions applicable for a given projectGet a condition by id.Get a condition by id.
-
Method Details
-
getHitCondition
Get a condition by id.- Returns:
- the condition or null if not supported
-
getAllHitConditions
List<? extends TimeMetricHitCondition> getAllHitConditions(com.atlassian.jira.project.Project project) Get all conditions applicable for a given project- Parameters:
project
- the project for which a condition might be applicable. All returned conditions must be independent of the project object, so only use this parameter to evaluate whether a condition makes sense (e.g. for a status condition to make sense the underlying status object must be used in the workflow defined for the project)
-
getMatchCondition
Get a condition by id.- Returns:
- the condition or null if not supported
-
getAllMatchConditions
List<? extends TimeMetricMatchCondition> getAllMatchConditions(com.atlassian.jira.project.Project project) Get all conditions applicable for a given project- Parameters:
project
- the project for which a condition might be applicable. All returned conditions must be independent of the project object, so only use this parameter to evaluate whether a condition makes sense (e.g. for a status condition to make sense the underlying status object must be used in the workflow defined for the project)
-