public class

IssueWorkflowManagerImpl

extends Object
implements IssueWorkflowManager
java.lang.Object
   ↳ com.atlassian.jira.workflow.IssueWorkflowManagerImpl

Summary

Public Constructors
IssueWorkflowManagerImpl(IssueManager issueManager, WorkflowManager workflowManager, JiraAuthenticationContext authenticationContext)
Public Methods
Collection<ActionDescriptor> getAvailableActions(Issue issue)
Returns the Workflow actions that are valid for the given Issue in its current state.
List<ActionDescriptor> getSortedAvailableActions(Issue issue)
Returns the Workflow actions that are valid for the given Issue in its current state.
boolean isValidAction(Issue issue, int actionid)
Returns true if the given transition ID is valid for the given issue.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.workflow.IssueWorkflowManager

Public Constructors

public IssueWorkflowManagerImpl (IssueManager issueManager, WorkflowManager workflowManager, JiraAuthenticationContext authenticationContext)

Public Methods

public Collection<ActionDescriptor> getAvailableActions (Issue issue)

Returns the Workflow actions that are valid for the given Issue in its current state.

Parameters
issue the Issue
Returns
  • the Workflow actions that are valid for the given Issue in its current state.

public List<ActionDescriptor> getSortedAvailableActions (Issue issue)

Returns the Workflow actions that are valid for the given Issue in its current state. The list is sorted by the sequence number.

Parameters
issue the Issue
Returns
  • the Workflow actions that are valid for the given Issue in its current state.

public boolean isValidAction (Issue issue, int actionid)

Returns true if the given transition ID is valid for the given issue.

Parameters
issue the Issue
actionid the id of the action we want to transition
Returns
  • true if it is ok to use the given transition on this issue.