public class WorkflowFunctionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ORIGINAL_ISSUE_KEY |
Constructor and Description |
---|
WorkflowFunctionUtils() |
Modifier and Type | Method and Description |
---|---|
protected ApplicationUser |
getCaller(Map transientVars,
Map args)
Deprecated.
Use
getCallerUser(java.util.Map, java.util.Map) instead. Since v6.0. |
static String |
getCallerKey(Map transientVars,
Map args)
Get the Key of user executing this condition.
|
protected String |
getCallerName(Map transientVars,
Map args)
Deprecated.
Use
getCallerUser(java.util.Map, java.util.Map) instead. Since v6.0. |
protected ApplicationUser |
getCallerUser(Map transientVars,
Map args)
Get the
ApplicationUser executing this condition. |
static ApplicationUser |
getCallerUserFromArgs(Map transientVars,
Map args)
Get the
ApplicationUser 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 retrieve
ApplicationUser later via getCallerUserFromArgs(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 retrieve
ApplicationUser later via getCallerUserFromArgs(java.util.Map, java.util.Map) |
public static final String ORIGINAL_ISSUE_KEY
protected String getCallerName(Map transientVars, Map args)
getCallerUser(java.util.Map, java.util.Map)
instead. Since v6.0.transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function argumentsprotected ApplicationUser getCaller(Map transientVars, Map args)
getCallerUser(java.util.Map, java.util.Map)
instead. Since v6.0.User
executing this condition.transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function argumentsprotected ApplicationUser getCallerUser(Map transientVars, Map args)
ApplicationUser
executing this condition.transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function argumentspublic static ApplicationUser getCallerUserFromArgs(Map transientVars, Map args)
ApplicationUser
executing this condition.transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function argumentspublic static String getCallerKey(Map transientVars, Map args)
transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function argumentspublic static void populateParamsWithUser(Map<String,Object> params, ApplicationUser user)
ApplicationUser
later via getCallerUserFromArgs(java.util.Map, java.util.Map)
If you want to pass parameters explicitly, please use populateParamsWithUser(java.util.Map, String)
params
- mutable map, which will be populated with user's identifieruser
- user, which later should be identified by getCallerUserFromArgs(java.util.Map,
java.util.Map)
getCallerUserFromArgs(java.util.Map, java.util.Map)
public static ApplicationUser getUserByKey(@Nullable String key)
public static void populateParamsWithUser(Map<String,Object> params, String userKey)
ApplicationUser
later via getCallerUserFromArgs(java.util.Map, java.util.Map)
params
- mutable map to be populated with user's identifieruserKey
- user's key to be inserted into paramsgetCallerUserFromArgs(java.util.Map, java.util.Map)
Copyright © 2002-2019 Atlassian. All Rights Reserved.