Package com.atlassian.jira.workflow
Class WorkflowFunctionUtils
java.lang.Object
com.atlassian.jira.workflow.WorkflowFunctionUtils
- Direct Known Subclasses:
AbstractJiraCondition,AbstractJiraFunctionProvider
Useful methods for JIRA OSWorkflow conditions and functions. Use the subclasses for real implementations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ApplicationUserDeprecated.static StringgetCallerKey(Map transientVars, Map args) Get the Key of user executing this condition.protected StringgetCallerName(Map transientVars, Map args) Deprecated.UsegetCallerUser(java.util.Map, java.util.Map)instead.protected ApplicationUsergetCallerUser(Map transientVars, Map args) Get theApplicationUserexecuting this condition.static ApplicationUsergetCallerUserFromArgs(Map transientVars, Map args) Get theApplicationUserexecuting this condition.static ApplicationUsergetUserByKey(String key) static voidpopulateParamsWithUser(Map<String, Object> params, ApplicationUser user) Populate given map of parameters with data which can identify user, in order to be able retrieveApplicationUserlater viagetCallerUserFromArgs(java.util.Map, java.util.Map)static voidpopulateParamsWithUser(Map<String, Object> params, String userKey) Populate given map of parameters with data which can identify user, in order to be able retrieveApplicationUserlater viagetCallerUserFromArgs(java.util.Map, java.util.Map)
-
Field Details
-
ORIGINAL_ISSUE_KEY
- See Also:
-
-
Constructor Details
-
WorkflowFunctionUtils
public WorkflowFunctionUtils()
-
-
Method Details
-
getCallerName
Deprecated.UsegetCallerUser(java.util.Map, java.util.Map)instead. Since v6.0.Get the name of the user executing this condition.- Parameters:
transientVars- workflow context - parameters passed to workflow engineargs- workflow's function arguments- Returns:
- Username, or null if run anonymously.
-
getCaller
Deprecated.UsegetCallerUser(java.util.Map, java.util.Map)instead. Since v6.0.Get theUserexecuting this condition.- Parameters:
transientVars- workflow context - parameters passed to workflow engineargs- workflow's function arguments- Returns:
- The User, or null if run anonymously.
-
getCallerUser
Get theApplicationUserexecuting this condition.- Parameters:
transientVars- workflow context - parameters passed to workflow engineargs- workflow's function arguments- Returns:
- The ApplicationUser, or null if run anonymously.
-
getCallerUserFromArgs
Get theApplicationUserexecuting this condition.- Parameters:
transientVars- workflow context - parameters passed to workflow engineargs- workflow's function arguments- Returns:
- The ApplicationUser, or null if run anonymously.
-
getCallerKey
Get the Key of user executing this condition.- Parameters:
transientVars- workflow context - parameters passed to workflow engineargs- workflow's function arguments- Returns:
- The user's Key, or null if run anonymously.
-
populateParamsWithUser
Populate given map of parameters with data which can identify user, in order to be able retrieveApplicationUserlater viagetCallerUserFromArgs(java.util.Map, java.util.Map)If you want to pass parameters explicitly, please use
populateParamsWithUser(java.util.Map, String)- Parameters:
params- mutable map, which will be populated with user's identifieruser- user, which later should be identified bygetCallerUserFromArgs(java.util.Map, java.util.Map)- Since:
- 6.0
- See Also:
-
getUserByKey
-
populateParamsWithUser
Populate given map of parameters with data which can identify user, in order to be able retrieveApplicationUserlater viagetCallerUserFromArgs(java.util.Map, java.util.Map)- Parameters:
params- mutable map to be populated with user's identifieruserKey- user's key to be inserted into params- Since:
- 6.0
- See Also:
-
getCallerUser(java.util.Map, java.util.Map)instead.