public class

WorkflowTransitionUtilImpl

extends Object
implements WorkflowProgressAware WorkflowTransitionUtil
java.lang.Object
   ↳ com.atlassian.jira.workflow.WorkflowTransitionUtilImpl

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.workflow.WorkflowTransitionUtil
[Expand]
Inherited Fields
From interface com.atlassian.jira.workflow.WorkflowTransitionUtil
Public Constructors
WorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext, WorkflowManager workflowManager, PermissionManager permissionManager, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, I18nHelper.BeanFactory i18nFactory)
Public Methods
void addAdditionalInput(Object key, Object value)
Pass a parameter into the action's "transientVars" parameter.
void addError(String name, String error)
void addErrorMessage(String error)
int getAction()
ActionDescriptor getActionDescriptor()
Map getAdditionalInputs()
FieldScreenRenderer getFieldScreenRenderer()
MutableIssue getIssue()
Project getProject()
Project getProjectObject()
Legacy synonym for getProject()
ApplicationUser getRemoteApplicationUser()
ApplicationUser getRemoteUser()
This method is deprecated. Use getRemoteApplicationUser() instead. Since v6.2.3.
String getUserKey()
Gets key of user who the workflow transition will be executed as
String getUsername()
This method is deprecated. Use getUserKey() instead. Since v6.0.
boolean hasScreen()
Checks if there's a screen associated with the workflow action for this transition.
ErrorCollection progress()
void setAction(int action)
void setIssue(MutableIssue issue)
void setParams(Map params)
void setUserkey(String userkey)
Sets key of user who the workflow transition will be executed as
void setUsername(String username)
This method is deprecated. Use setUserkey(String) instead. Since v6.0.
ErrorCollection validate()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.workflow.WorkflowProgressAware
From interface com.atlassian.jira.workflow.WorkflowTransitionUtil

Public Constructors

public WorkflowTransitionUtilImpl (JiraAuthenticationContext authenticationContext, WorkflowManager workflowManager, PermissionManager permissionManager, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, I18nHelper.BeanFactory i18nFactory)

Public Methods

public void addAdditionalInput (Object key, Object value)

Pass a parameter into the action's "transientVars" parameter.

public void addError (String name, String error)

public void addErrorMessage (String error)

public int getAction ()

public ActionDescriptor getActionDescriptor ()

public Map getAdditionalInputs ()

public FieldScreenRenderer getFieldScreenRenderer ()

public MutableIssue getIssue ()

public Project getProject ()

public Project getProjectObject ()

Legacy synonym for getProject()

Returns
  • The project

public ApplicationUser getRemoteApplicationUser ()

public ApplicationUser getRemoteUser ()

This method is deprecated.
Use getRemoteApplicationUser() instead. Since v6.2.3.

public String getUserKey ()

Gets key of user who the workflow transition will be executed as

Returns
  • username

public String getUsername ()

This method is deprecated.
Use getUserKey() instead. Since v6.0.

Gets username of user who the workflow transition will be executed as

Returns
  • username

public boolean hasScreen ()

Checks if there's a screen associated with the workflow action for this transition. Returns false if no screen is associated with the action.

Returns
  • true if a screen is associated with the current workflow action.

public ErrorCollection progress ()

public void setAction (int action)

public void setIssue (MutableIssue issue)

public void setParams (Map params)

public void setUserkey (String userkey)

Sets key of user who the workflow transition will be executed as

Parameters
userkey desired user's key

public void setUsername (String username)

This method is deprecated.
Use setUserkey(String) instead. Since v6.0.

Sets username of user who the workflow transition will be executed as

Parameters
username desired username

public ErrorCollection validate ()