public class UpdateIssueFieldFunctionPluginFactory extends AbstractWorkflowPluginFactory implements WorkflowPluginFunctionFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VALUE |
static String |
PARAM_FIELD_ID |
static String |
PARAM_FIELD_VALUE |
static String |
TARGET_FIELD_NAME |
static String |
TARGET_FIELD_VALUE |
| Constructor and Description |
|---|
UpdateIssueFieldFunctionPluginFactory(FieldManager fieldManager,
UserKeyService userKeyService) |
| Modifier and Type | Method and Description |
|---|---|
Map |
getDescriptorParams(Map conditionParams)
Given a set of name:value parameters from the plugin configuration page (ie.
|
String |
getEditHtml(OrderableField field,
Object value) |
protected void |
getVelocityParamsForEdit(Map velocityParams,
com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'edit-parameters' velocity template.
|
protected void |
getVelocityParamsForInput(Map velocityParams)
Get velocity parameters for 'input-parameters' velocity template.
|
protected void |
getVelocityParamsForView(Map velocityParams,
com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'view' velocity template.
|
boolean |
hasCustomEditTemplate(Field field) |
createMap, extractMultipleParams, extractSingleParam, getVelocityParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVelocityParamspublic static final String PARAM_FIELD_ID
public static final String PARAM_FIELD_VALUE
public static final String TARGET_FIELD_NAME
public static final String TARGET_FIELD_VALUE
public static final String DEFAULT_VALUE
public UpdateIssueFieldFunctionPluginFactory(FieldManager fieldManager, UserKeyService userKeyService)
protected void getVelocityParamsForInput(Map velocityParams)
AbstractWorkflowPluginFactorygetVelocityParamsForInput in class AbstractWorkflowPluginFactoryvelocityParams - Map to populate.AbstractWorkflowPluginFactory.getVelocityParams(String, com.opensymphony.workflow.loader.AbstractDescriptor)protected void getVelocityParamsForEdit(Map velocityParams, com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
AbstractWorkflowPluginFactorydescriptor.getArgs()
to retrieve the current configuration, and populate velocityParams from that.getVelocityParamsForEdit in class AbstractWorkflowPluginFactoryvelocityParams - Map to populate.descriptor - Eg. FunctionDescriptor or ConditionDescriptor describing the function/condition and its current configuration.AbstractWorkflowPluginFactory.getVelocityParams(String, com.opensymphony.workflow.loader.AbstractDescriptor)protected void getVelocityParamsForView(Map velocityParams, com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
AbstractWorkflowPluginFactorydescriptor.getArgs() to retrieve the current
configuration, look up a displayable string for the value and and populate velocityParams with that.getVelocityParamsForView in class AbstractWorkflowPluginFactoryvelocityParams - Map to populate.descriptor - Eg. a FunctionDescriptor or ConditionDescriptor describing the function/condition and its current configuration.AbstractWorkflowPluginFactory.getVelocityParams(String, com.opensymphony.workflow.loader.AbstractDescriptor)public Map getDescriptorParams(Map conditionParams)
WorkflowPluginFactoryexecute()
or conditions' passesCondition
methods.
The velocity page often submits values in array form, and this method extracts just the relevant value.getDescriptorParams in interface WorkflowPluginFactoryconditionParams - Parameters from the velocity template, eg. {"fieldId" : ["assignee"], "fieldValue":["-1"]}public String getEditHtml(OrderableField field, Object value)
public boolean hasCustomEditTemplate(Field field)
Copyright © 2002-2015 Atlassian. All Rights Reserved.