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, PermissionManager permissionManager)
Public Methods
@Deprecated Collection<ActionDescriptor> getAvailableActions(Issue issue)
Returns the Workflow actions that are valid for the given Issue in its current state for current user.
Collection<ActionDescriptor> getAvailableActions(Issue issue, ApplicationUser user)
Returns the Workflow actions that are valid for the given Issue in its current state for given user.
Collection<ActionDescriptor> getAvailableActions(Issue issue, TransitionOptions transitionOptions, ApplicationUser user)
Returns the Workflow actions that are valid for the given Issue in its current state for given user.
List<ActionDescriptor> getSortedAvailableActions(Issue issue, TransitionOptions transitionOptions, ApplicationUser user)
Returns the Workflow actions that are valid for the given Issue in its current state for given user.
List<ActionDescriptor> getSortedAvailableActions(Issue issue, ApplicationUser user)
Returns the Workflow actions that are valid for the given Issue in its current state for given user.
@Deprecated List<ActionDescriptor> getSortedAvailableActions(Issue issue)
Returns the Workflow actions that are valid for the given Issue in its current state for current user.
boolean isValidAction(Issue issue, int actionId, ApplicationUser user)
Returns true if the given transition ID is valid for the given issue and given user.
boolean isValidAction(Issue issue, int actionId, TransitionOptions transitionOptions, ApplicationUser user)
Returns true if the given transition ID is valid for the given issue and current user.
@Deprecated boolean isValidAction(Issue issue, int actionid)
Returns true if the given transition ID is valid for the given issue and current user.
[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, PermissionManager permissionManager)

Public Methods

@Deprecated public Collection<ActionDescriptor> getAvailableActions (Issue issue)

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

This will call getAvailableActions below with defaults().

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

public Collection<ActionDescriptor> getAvailableActions (Issue issue, ApplicationUser user)

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

This will call getAvailableActions below with defaults().

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

public Collection<ActionDescriptor> getAvailableActions (Issue issue, TransitionOptions transitionOptions, ApplicationUser user)

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

Parameters
issue the Issue
transitionOptions options to skip conditions, permissions while performing action validation
user user to check the permissions for
Returns
  • the Workflow actions that are valid for the given Issue in its current state.

public List<ActionDescriptor> getSortedAvailableActions (Issue issue, TransitionOptions transitionOptions, ApplicationUser user)

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

Parameters
issue the Issue
transitionOptions options to skip conditions, permissions while performing action validation
user user to check the permissions for
Returns
  • the Workflow actions that are valid for the given Issue in its current state.

public List<ActionDescriptor> getSortedAvailableActions (Issue issue, ApplicationUser user)

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

This will call getSortedAvailableActions below with defaults().

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

@Deprecated public List<ActionDescriptor> getSortedAvailableActions (Issue issue)

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

This will call getSortedAvailableActions below with defaults().

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, ApplicationUser user)

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

This will call isValidAction below with defaults().

Parameters
issue the Issue
actionId the id of the action we want to transition
user user to check the permissions for
Returns
  • true if it is ok to use the given transition on this issue.

public boolean isValidAction (Issue issue, int actionId, TransitionOptions transitionOptions, ApplicationUser user)

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

Parameters
issue the Issue
actionId the id of the action we want to transition
transitionOptions options to skip conditions, permissions while performing action validation
user user to check the permissions for
Returns
  • true if it is ok to use the given transition on this issue.

@Deprecated public boolean isValidAction (Issue issue, int actionid)

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

This will call isValidAction below with defaults().

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.