Class Overview
Factory for editing plugins that require a group selector custom field, eg.
InGroupCFCondition
Summary
[Expand]
Inherited Methods |
From class
com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
Map<String, String>
|
createMap(Map<String, String> extractedParams)
|
Map<String, ?>
|
extractMultipleParams(Map<String, Object> params, Collection<String> paramNames)
|
String
|
extractSingleParam(Map<String, Object> conditionParams, String paramName)
|
Map<String, Object>
|
getVelocityParams(String resourceName, AbstractDescriptor descriptor)
Creates a Map of parameters for a view-specific velocity context given
the name of the resource (i.e.
|
abstract
void
|
getVelocityParamsForEdit(Map<String, Object> velocityParams, AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'edit-parameters' velocity template.
|
abstract
void
|
getVelocityParamsForInput(Map<String, Object> velocityParams)
Get velocity parameters for 'input-parameters' velocity template.
|
abstract
void
|
getVelocityParamsForView(Map<String, Object> velocityParams, AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'view' velocity template.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.jira.plugin.workflow.WorkflowPluginFactory
|
Public Constructors
public
WorkflowIsUserInGroupCFConditionFactoryImpl
(GroupSelectorUtils groupSelectorUtils)
Public Methods
Given a set of name:value parameters from the plugin configuration page (ie. the 'input-parameters' velocity template)
return a map of sanitized parameters which will be passed into workflow plugin instances.
For example, the results are passed in the 'arg' parameter
of post-functions' execute()
or conditions' passesCondition
methods.
The velocity page often submits values in array form, and this method extracts just the relevant value.
Parameters
conditionParams
| Parameters from the velocity template, eg. {"fieldId" : ["assignee"], "fieldValue":["-1"]} |
Returns
- Parameters to be passed into workflow functions via the 'args' map. Eg. {"assignee": "-1"}
Protected Methods
protected
void
getVelocityParamsForEdit
(Map<String, Object> velocityParams, AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'edit-parameters' velocity template.
Typically an implementation would call descriptor.getArgs()
to retrieve the current configuration, and populate velocityParams from that.
Parameters
velocityParams
| Map to populate. |
descriptor
| Eg. FunctionDescriptor or ConditionDescriptor describing the function/condition and its current configuration. |
protected
void
getVelocityParamsForInput
(Map<String, Object> velocityParams)
Get velocity parameters for 'input-parameters' velocity template.
Parameters
velocityParams
| Map to populate. |
protected
void
getVelocityParamsForView
(Map<String, Object> velocityParams, AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'view' velocity template.
Eg. call descriptor.getArgs()
to retrieve the current
configuration, look up a displayable string for the value and and populate velocityParams with that.
Parameters
velocityParams
| Map to populate. |
descriptor
| Eg. a FunctionDescriptor or ConditionDescriptor describing the function/condition and its current configuration. |