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, PermissionManager permissionManager)
           
 
Method Summary
 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)
          Deprecated. 
 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)
          Deprecated. 
 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)
          Deprecated. 
 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.
 
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,
                                PermissionManager permissionManager)
Method Detail

getAvailableActions

@Deprecated
public Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue)
Deprecated. 

Description copied from interface: IssueWorkflowManager
Returns the Workflow actions that are valid for the given Issue in its current state for current user.

This will call getAvailableActions below with TransitionOptions.defaults().

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.

getAvailableActions

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

This will call getAvailableActions below with TransitionOptions.defaults().

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

getAvailableActions

@Deprecated
public Collection<com.opensymphony.workflow.loader.ActionDescriptor> getAvailableActions(Issue issue,
                                                                                                    TransitionOptions transitionOptions)
Deprecated. 

Description copied from interface: IssueWorkflowManager
Returns the Workflow actions that are valid for the given Issue in its current state for current user.

Specified by:
getAvailableActions in interface IssueWorkflowManager
Parameters:
issue - the Issue
transitionOptions - options to skip conditions, permissions while performing action validation
Returns:
the Workflow actions that are valid for the given Issue in its current state.

getAvailableActions

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

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

getSortedAvailableActions

@Deprecated
public List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue)
Deprecated. 

Description copied from interface: IssueWorkflowManager
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 TransitionOptions.defaults().

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.

getSortedAvailableActions

@Deprecated
public List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue,
                                                                                                    TransitionOptions transitionOptions)
Deprecated. 

Description copied from interface: IssueWorkflowManager
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.

Specified by:
getSortedAvailableActions in interface IssueWorkflowManager
Parameters:
issue - the Issue
transitionOptions - options to skip conditions, permissions while performing action validation
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,
                                                                                         ApplicationUser user)
Description copied from interface: IssueWorkflowManager
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 TransitionOptions.defaults().

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

getSortedAvailableActions

public List<com.opensymphony.workflow.loader.ActionDescriptor> getSortedAvailableActions(Issue issue,
                                                                                         TransitionOptions transitionOptions,
                                                                                         ApplicationUser user)
Description copied from interface: IssueWorkflowManager
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.

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

isValidAction

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

Description copied from interface: IssueWorkflowManager
Returns true if the given transition ID is valid for the given issue and current user.

Specified by:
isValidAction in interface IssueWorkflowManager
Parameters:
issue - the Issue
actionid - the id of the action we want to transition
transitionOptions - options to skip conditions, permissions while performing action validation
Returns:
true if it is ok to use the given transition on this issue.

isValidAction

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

Description copied from interface: IssueWorkflowManager
Returns true if the given transition ID is valid for the given issue and current user.

This will call isValidAction below with TransitionOptions.defaults().

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.

isValidAction

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

This will call isValidAction below with TransitionOptions.defaults().

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

isValidAction

public boolean isValidAction(Issue issue,
                             int actionId,
                             TransitionOptions transitionOptions,
                             ApplicationUser user)
Description copied from interface: IssueWorkflowManager
Returns true if the given transition ID is valid for the given issue and current user.

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.