com.atlassian.jira.workflow
Class WorkflowTransitionUtilImpl

java.lang.Object
  extended by com.atlassian.jira.workflow.WorkflowTransitionUtilImpl
All Implemented Interfaces:
WorkflowProgressAware, WorkflowTransitionUtil

public class WorkflowTransitionUtilImpl
extends java.lang.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
WorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext, WorkflowManager workflowManager, PermissionManager permissionManager, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService)
           
 
Method Summary
 void addAdditionalInput(java.lang.Object key, java.lang.Object value)
          Pass a parameter into the action's "transientVars" parameter.
 void addError(java.lang.String name, java.lang.String error)
           
 void addErrorMessage(java.lang.String error)
           
 int getAction()
           
 com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor()
           
 java.util.Map getAdditionalInputs()
           
 FieldScreenRenderer getFieldScreenRenderer()
           
 MutableIssue getIssue()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 com.opensymphony.user.User getRemoteUser()
           
 java.lang.String getUsername()
           
 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(java.util.Map params)
           
 void setUsername(java.lang.String username)
           
 ErrorCollection validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowTransitionUtilImpl

public WorkflowTransitionUtilImpl(JiraAuthenticationContext authenticationContext,
                                  WorkflowManager workflowManager,
                                  PermissionManager permissionManager,
                                  FieldScreenRendererFactory fieldScreenRendererFactory,
                                  CommentService commentService)
Method Detail

getIssue

public MutableIssue getIssue()
Specified by:
getIssue in interface WorkflowProgressAware

setIssue

public void setIssue(MutableIssue issue)
Specified by:
setIssue in interface WorkflowTransitionUtil

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Specified by:
getProject in interface WorkflowProgressAware

getRemoteUser

public com.opensymphony.user.User getRemoteUser()
Specified by:
getRemoteUser in interface WorkflowProgressAware

getAction

public int getAction()
Specified by:
getAction in interface WorkflowProgressAware

setAction

public void setAction(int action)
Specified by:
setAction in interface WorkflowProgressAware
Specified by:
setAction in interface WorkflowTransitionUtil

getActionDescriptor

public com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor()
Specified by:
getActionDescriptor in interface WorkflowTransitionUtil

addErrorMessage

public void addErrorMessage(java.lang.String error)
Specified by:
addErrorMessage in interface WorkflowProgressAware

addError

public void addError(java.lang.String name,
                     java.lang.String error)
Specified by:
addError in interface WorkflowProgressAware

getAdditionalInputs

public java.util.Map getAdditionalInputs()
Specified by:
getAdditionalInputs in interface WorkflowProgressAware

addAdditionalInput

public void addAdditionalInput(java.lang.Object key,
                               java.lang.Object value)
Description copied from interface: WorkflowTransitionUtil
Pass a parameter into the action's "transientVars" parameter.

Specified by:
addAdditionalInput in interface WorkflowTransitionUtil

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface WorkflowTransitionUtil

setUsername

public void setUsername(java.lang.String username)
Specified by:
setUsername in interface WorkflowTransitionUtil

validate

public ErrorCollection validate()
Specified by:
validate in interface WorkflowTransitionUtil

getFieldScreenRenderer

public FieldScreenRenderer getFieldScreenRenderer()
Specified by:
getFieldScreenRenderer in interface WorkflowTransitionUtil

progress

public ErrorCollection progress()
Specified by:
progress in interface WorkflowTransitionUtil

setParams

public void setParams(java.util.Map params)
Specified by:
setParams in interface WorkflowTransitionUtil

hasScreen

public boolean hasScreen()
Description copied from interface: WorkflowTransitionUtil
Checks 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:
hasScreen in interface WorkflowTransitionUtil
Returns:
true if a screen is associated with the current workflow action.


Copyright © 2002-2010 Atlassian. All Rights Reserved.