public class IssueWorkflowManagerImpl extends Object implements IssueWorkflowManager
Constructor and Description |
---|
IssueWorkflowManagerImpl(IssueManager issueManager,
WorkflowManager workflowManager,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
Collection<com.opensymphony.workflow.loader.ActionDescriptor> |
getAvailableActions(Issue issue)
Deprecated.
|
Collection<com.opensymphony.workflow.loader.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<com.opensymphony.workflow.loader.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<com.opensymphony.workflow.loader.ActionDescriptor> |
getSortedAvailableActions(Issue issue)
Deprecated.
|
List<com.opensymphony.workflow.loader.ActionDescriptor> |
getSortedAvailableActions(Issue issue,
ApplicationUser user)
Returns the Workflow actions that are valid for the given Issue in its current state for given user.
|
List<com.opensymphony.workflow.loader.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.
|
boolean |
isValidAction(Issue issue,
int actionid)
Deprecated.
|
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.
|
public IssueWorkflowManagerImpl(IssueManager issueManager, WorkflowManager workflowManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
@Deprecated public Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue)
IssueWorkflowManager
This will call getAvailableActions below with TransitionOptions.defaults()
.
getAvailableActions
in interface IssueWorkflowManager
issue
- the Issuepublic Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue, ApplicationUser user)
IssueWorkflowManager
This will call getAvailableActions below with TransitionOptions.defaults()
.
getAvailableActions
in interface IssueWorkflowManager
issue
- the Issueuser
- user to check the permissions forpublic Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue, TransitionOptions transitionOptions, ApplicationUser user)
IssueWorkflowManager
getAvailableActions
in interface IssueWorkflowManager
issue
- the IssuetransitionOptions
- options to skip conditions, permissions while performing action validationuser
- user to check the permissions for@Deprecated public List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue)
IssueWorkflowManager
This will call getSortedAvailableActions below with TransitionOptions.defaults()
.
getSortedAvailableActions
in interface IssueWorkflowManager
issue
- the Issuepublic List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue, ApplicationUser user)
IssueWorkflowManager
This will call getSortedAvailableActions below with TransitionOptions.defaults()
.
getSortedAvailableActions
in interface IssueWorkflowManager
issue
- the Issueuser
- user to check the permissions forpublic List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue, TransitionOptions transitionOptions, ApplicationUser user)
IssueWorkflowManager
getSortedAvailableActions
in interface IssueWorkflowManager
issue
- the IssuetransitionOptions
- options to skip conditions, permissions while performing action validationuser
- user to check the permissions for@Deprecated public boolean isValidAction(Issue issue, int actionid)
IssueWorkflowManager
This will call isValidAction below with TransitionOptions.defaults()
.
isValidAction
in interface IssueWorkflowManager
issue
- the Issueactionid
- the id of the action we want to transitionpublic boolean isValidAction(Issue issue, int actionId, ApplicationUser user)
IssueWorkflowManager
This will call isValidAction below with TransitionOptions.defaults()
.
isValidAction
in interface IssueWorkflowManager
issue
- the IssueactionId
- the id of the action we want to transitionuser
- user to check the permissions forpublic boolean isValidAction(Issue issue, int actionId, TransitionOptions transitionOptions, ApplicationUser user)
IssueWorkflowManager
isValidAction
in interface IssueWorkflowManager
issue
- the IssueactionId
- the id of the action we want to transitiontransitionOptions
- options to skip conditions, permissions while performing action validationuser
- user to check the permissions forCopyright © 2002-2019 Atlassian. All Rights Reserved.