View Javadoc

1   package com.atlassian.jira.workflow.transition;
2   
3   import java.util.List;
4   import java.util.Map;
5   
6   import com.atlassian.jira.issue.Issue;
7   import com.atlassian.jira.issue.MutableIssue;
8   import com.opensymphony.workflow.loader.ActionDescriptor;
9   
10  public interface AutoTransitionManager {
11  
12  	/** Prefix wanted in Workflow defintion to retrieve default Values to use for Transition */
13  	public static String DEFAULT_VALUE_PREFFIX = "auto.transition.";
14  
15  	
16  	public abstract void performAutoTransition(final MutableIssue _issue);
17  
18  	/**
19  	 * @param _issue
20  	 * @return List of available Action for Auto Transition
21  	 */
22  	public abstract List getAutoTransitionActions(final MutableIssue _issue);
23  	
24  	/**
25  	 * @param _issue
26  	 * @return true is Auto Transition is Applicable
27  	 */
28  	public boolean hasApplicableAutoTransition(final MutableIssue _issue);
29  
30  	/**
31  	 * @param _issue
32  	 * @return Map of available Action on Issue
33  	 */
34  	public abstract Map getAvailableActions(final MutableIssue _issue);
35  
36  	/**
37  	 * @return True if Action allow AutoTransition
38  	 */
39  	public abstract boolean isActionCandidate(final ActionDescriptor _actionDescriptor);
40  
41  }