public class WorkflowTransitionUtilImpl extends Object implements WorkflowProgressAware, WorkflowTransitionUtil
FIELD_COMMENT, FIELD_COMMENT_GROUP_LEVEL, FIELD_COMMENT_LEVEL, FIELD_COMMENT_ROLE_LEVEL, VIEW_COMMENTASSIGN, VIEW_COMMENTASSIGN_ID, VIEW_RESOLVE, VIEW_RESOLVE_ID, VIEW_SCREEN
Constructor and Description |
---|
WorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext,
WorkflowManager workflowManager,
PermissionManager permissionManager,
FieldScreenRendererFactory fieldScreenRendererFactory,
CommentService commentService,
I18nHelper.BeanFactory i18nFactory) |
Modifier and Type | Method and Description |
---|---|
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() |
com.opensymphony.workflow.loader.ActionDescriptor |
getActionDescriptor() |
Map |
getAdditionalInputs() |
FieldScreenRenderer |
getFieldScreenRenderer() |
MutableIssue |
getIssue() |
Project |
getProject() |
Project |
getProjectObject()
Legacy synonym for
WorkflowProgressAware.getProject() |
ApplicationUser |
getRemoteApplicationUser() |
ApplicationUser |
getRemoteUser()
Deprecated.
Use
getRemoteApplicationUser() instead. Since v6.2.3. |
String |
getUserKey()
Gets key of user who the workflow transition will be executed as
|
String |
getUsername()
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)
Deprecated.
Use
setUserkey(String) instead. Since v6.0. |
ErrorCollection |
validate() |
public WorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext, WorkflowManager workflowManager, PermissionManager permissionManager, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, I18nHelper.BeanFactory i18nFactory)
public MutableIssue getIssue()
getIssue
in interface WorkflowProgressAware
public void setIssue(MutableIssue issue)
setIssue
in interface WorkflowTransitionUtil
public Project getProject()
getProject
in interface WorkflowProgressAware
public Project getProjectObject()
WorkflowProgressAware
WorkflowProgressAware.getProject()
getProjectObject
in interface WorkflowProgressAware
public ApplicationUser getRemoteUser()
getRemoteApplicationUser()
instead. Since v6.2.3.getRemoteUser
in interface WorkflowProgressAware
public ApplicationUser getRemoteApplicationUser()
getRemoteApplicationUser
in interface WorkflowProgressAware
public int getAction()
getAction
in interface WorkflowProgressAware
public void setAction(int action)
setAction
in interface WorkflowProgressAware
setAction
in interface WorkflowTransitionUtil
public com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor()
getActionDescriptor
in interface WorkflowTransitionUtil
public void addErrorMessage(String error)
addErrorMessage
in interface WorkflowProgressAware
public void addError(String name, String error)
addError
in interface WorkflowProgressAware
public Map getAdditionalInputs()
getAdditionalInputs
in interface WorkflowProgressAware
public void addAdditionalInput(Object key, Object value)
WorkflowTransitionUtil
addAdditionalInput
in interface WorkflowTransitionUtil
public String getUsername()
getUserKey()
instead. Since v6.0.WorkflowTransitionUtil
getUsername
in interface WorkflowTransitionUtil
public void setUsername(String username)
setUserkey(String)
instead. Since v6.0.WorkflowTransitionUtil
setUsername
in interface WorkflowTransitionUtil
username
- desired usernamepublic String getUserKey()
WorkflowTransitionUtil
getUserKey
in interface WorkflowTransitionUtil
public void setUserkey(String userkey)
WorkflowTransitionUtil
setUserkey
in interface WorkflowTransitionUtil
userkey
- desired user's keypublic ErrorCollection validate()
validate
in interface WorkflowTransitionUtil
public FieldScreenRenderer getFieldScreenRenderer()
getFieldScreenRenderer
in interface WorkflowTransitionUtil
public ErrorCollection progress()
progress
in interface WorkflowTransitionUtil
public void setParams(Map params)
setParams
in interface WorkflowTransitionUtil
public boolean hasScreen()
WorkflowTransitionUtil
hasScreen
in interface WorkflowTransitionUtil
Copyright © 2002-2016 Atlassian. All Rights Reserved.