Package com.atlassian.jira.workflow
Class WorkflowTransitionUtilImpl
java.lang.Object
com.atlassian.jira.workflow.WorkflowTransitionUtilImpl
- All Implemented Interfaces:
WorkflowProgressAware,WorkflowTransitionUtil
public class WorkflowTransitionUtilImpl
extends Object
implements WorkflowProgressAware, WorkflowTransitionUtil
-
Field Summary
Fields inherited from interface com.atlassian.jira.workflow.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 Summary
ConstructorsConstructorDescriptionWorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext, WorkflowManager workflowManager, PermissionManager permissionManager, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, I18nHelper.BeanFactory i18nFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalInput(Object key, Object value) Pass a parameter into the action's "transientVars" parameter.voidvoidaddErrorMessage(String error) intcom.opensymphony.workflow.loader.ActionDescriptorgetIssue()Legacy synonym forWorkflowProgressAware.getProject()Deprecated.Gets key of user who the workflow transition will be executed asDeprecated.UsegetUserKey()instead.booleanChecks if there's a screen associated with the workflow action for this transition.progress()voidsetAction(int action) voidsetIssue(MutableIssue issue) voidvoidsetUserkey(String userkey) Sets key of user who the workflow transition will be executed asvoidsetUsername(String username) Deprecated.UsesetUserkey(String)instead.validate()
-
Constructor Details
-
WorkflowTransitionUtilImpl
public WorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext, WorkflowManager workflowManager, PermissionManager permissionManager, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, I18nHelper.BeanFactory i18nFactory)
-
-
Method Details
-
getIssue
- Specified by:
getIssuein interfaceWorkflowProgressAware
-
setIssue
- Specified by:
setIssuein interfaceWorkflowTransitionUtil
-
getProject
- Specified by:
getProjectin interfaceWorkflowProgressAware
-
getProjectObject
Description copied from interface:WorkflowProgressAwareLegacy synonym forWorkflowProgressAware.getProject()- Specified by:
getProjectObjectin interfaceWorkflowProgressAware- Returns:
- The project
-
getRemoteUser
Deprecated.UsegetRemoteApplicationUser()instead. Since v6.2.3.- Specified by:
getRemoteUserin interfaceWorkflowProgressAware
-
getRemoteApplicationUser
- Specified by:
getRemoteApplicationUserin interfaceWorkflowProgressAware
-
getAction
public int getAction()- Specified by:
getActionin interfaceWorkflowProgressAware
-
setAction
public void setAction(int action) - Specified by:
setActionin interfaceWorkflowProgressAware- Specified by:
setActionin interfaceWorkflowTransitionUtil
-
getActionDescriptor
public com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor()- Specified by:
getActionDescriptorin interfaceWorkflowTransitionUtil
-
addErrorMessage
- Specified by:
addErrorMessagein interfaceWorkflowProgressAware
-
addError
- Specified by:
addErrorin interfaceWorkflowProgressAware
-
getAdditionalInputs
- Specified by:
getAdditionalInputsin interfaceWorkflowProgressAware
-
addAdditionalInput
Description copied from interface:WorkflowTransitionUtilPass a parameter into the action's "transientVars" parameter.- Specified by:
addAdditionalInputin interfaceWorkflowTransitionUtil- Parameters:
key-value-
-
getUsername
Deprecated.UsegetUserKey()instead. Since v6.0.Description copied from interface:WorkflowTransitionUtilGets username of user who the workflow transition will be executed as- Specified by:
getUsernamein interfaceWorkflowTransitionUtil- Returns:
- username
-
setUsername
Deprecated.UsesetUserkey(String)instead. Since v6.0.Description copied from interface:WorkflowTransitionUtilSets username of user who the workflow transition will be executed as- Specified by:
setUsernamein interfaceWorkflowTransitionUtil- Parameters:
username- desired username
-
getUserKey
Description copied from interface:WorkflowTransitionUtilGets key of user who the workflow transition will be executed as- Specified by:
getUserKeyin interfaceWorkflowTransitionUtil- Returns:
- username
-
setUserkey
Description copied from interface:WorkflowTransitionUtilSets key of user who the workflow transition will be executed as- Specified by:
setUserkeyin interfaceWorkflowTransitionUtil- Parameters:
userkey- desired user's key
-
validate
- Specified by:
validatein interfaceWorkflowTransitionUtil
-
getFieldScreenRenderer
- Specified by:
getFieldScreenRendererin interfaceWorkflowTransitionUtil
-
progress
- Specified by:
progressin interfaceWorkflowTransitionUtil
-
setParams
- Specified by:
setParamsin interfaceWorkflowTransitionUtil
-
hasScreen
public boolean hasScreen()Description copied from interface:WorkflowTransitionUtilChecks if there's a screen associated with the workflow action for this transition. Returns false if no screen is associated with the action.- Specified by:
hasScreenin interfaceWorkflowTransitionUtil- Returns:
- true if a screen is associated with the current workflow action.
-
getRemoteApplicationUser()instead.