|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.workflow.WorkflowFunctionUtils
public class WorkflowFunctionUtils
Useful methods for JIRA OSWorkflow conditions and functions. Use the subclasses for real implementations.
Field Summary | |
---|---|
static String |
ORIGINAL_ISSUE_KEY
|
static String |
ORIGNAL_ISSUE_KEY
Deprecated. - typo in name, please use ORIGINAL_ISSUE_KEY. Deprecated since v4.0 |
Constructor Summary | |
---|---|
WorkflowFunctionUtils()
|
Method Summary | |
---|---|
protected com.atlassian.crowd.embedded.api.User |
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 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)
If you want to pass parameters explicitly, please use populateParamsWithUser(java.util.Map, String) |
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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ORIGINAL_ISSUE_KEY
public static final String ORIGNAL_ISSUE_KEY
Constructor Detail |
---|
public WorkflowFunctionUtils()
Method Detail |
---|
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 arguments
protected com.atlassian.crowd.embedded.api.User 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 arguments
protected ApplicationUser getCallerUser(Map transientVars, Map args)
ApplicationUser
executing this condition.
transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function arguments
public static ApplicationUser getCallerUserFromArgs(Map transientVars, Map args)
ApplicationUser
executing this condition.
transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function arguments
public static String getCallerKey(Map transientVars, Map args)
transientVars
- workflow context - parameters passed to workflow engineargs
- workflow's function arguments
public 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 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |