com.atlassian.jira.workflow
Class IssueWorkflowManagerImpl

java.lang.Object
  extended by com.atlassian.jira.workflow.IssueWorkflowManagerImpl
All Implemented Interfaces:
IssueWorkflowManager

public class IssueWorkflowManagerImpl
extends Object
implements IssueWorkflowManager


Constructor Summary
IssueWorkflowManagerImpl(IssueManager issueManager, WorkflowManager workflowManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue)
          Returns the Workflow actions that are valid for the given Issue in its current state.
 List<com.opensymphony.workflow.loader.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueWorkflowManagerImpl

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

getAvailableActions

public Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue)
Description copied from interface: IssueWorkflowManager
Returns the Workflow actions that are valid for the given Issue in its current state.

Specified by:
getAvailableActions in interface IssueWorkflowManager
Parameters:
issue - the Issue
Returns:
the Workflow actions that are valid for the given Issue in its current state.

getSortedAvailableActions

public List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue)
Description copied from interface: IssueWorkflowManager
Returns the Workflow actions that are valid for the given Issue in its current state. The list is sorted by the sequence number.

Specified by:
getSortedAvailableActions in interface IssueWorkflowManager
Parameters:
issue - the Issue
Returns:
the Workflow actions that are valid for the given Issue in its current state.

isValidAction

public boolean isValidAction(Issue issue,
                             int actionid)
Description copied from interface: IssueWorkflowManager
Returns true if the given transition ID is valid for the given issue.

Specified by:
isValidAction in interface IssueWorkflowManager
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.


Copyright © 2002-2013 Atlassian. All Rights Reserved.