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 ApplicationUser
Deprecated.static String
getCallerKey
(Map transientVars, Map args) Get the Key of user executing this condition.protected String
getCallerName
(Map transientVars, Map args) Deprecated.UsegetCallerUser(java.util.Map, java.util.Map)
instead.protected ApplicationUser
getCallerUser
(Map transientVars, Map args) Get theApplicationUser
executing this condition.static ApplicationUser
getCallerUserFromArgs
(Map transientVars, Map args) Get theApplicationUser
executing this condition.static ApplicationUser
getUserByKey
(String key) static void
populateParamsWithUser
(Map<String, Object> params, ApplicationUser user) Populate given map of parameters with data which can identify user, in order to be able retrieveApplicationUser
later viagetCallerUserFromArgs(java.util.Map, java.util.Map)
static void
populateParamsWithUser
(Map<String, Object> params, String userKey) Populate given map of parameters with data which can identify user, in order to be able retrieveApplicationUser
later 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 theUser
executing 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 theApplicationUser
executing 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 theApplicationUser
executing 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 retrieveApplicationUser
later 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 retrieveApplicationUser
later 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.