Class UpdateIssueFieldFunctionPluginFactory
java.lang.Object
com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
com.atlassian.jira.plugin.workflow.UpdateIssueFieldFunctionPluginFactory
- All Implemented Interfaces:
WorkflowPluginFactory, WorkflowPluginFunctionFactory
public class UpdateIssueFieldFunctionPluginFactory
extends AbstractWorkflowPluginFactory
implements WorkflowPluginFunctionFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpdateIssueFieldFunctionPluginFactory(FieldManager fieldManager, UserKeyService userKeyService) -
Method Summary
Modifier and TypeMethodDescriptiongetDescriptorParams(Map conditionParams) Given a set of name:value parameters from the plugin configuration page (ie.getEditHtml(OrderableField field, Object value) protected voidgetVelocityParamsForEdit(Map velocityParams, AbstractDescriptor descriptor) Populates the given map with velocity parameters for 'edit-parameters' velocity template.protected voidgetVelocityParamsForInput(Map velocityParams) Get velocity parameters for 'input-parameters' velocity template.protected voidgetVelocityParamsForView(Map velocityParams, AbstractDescriptor descriptor) Populates the given map with velocity parameters for 'view' velocity template.booleanhasCustomEditTemplate(Field field) Methods inherited from class AbstractWorkflowPluginFactory
createMap, extractMultipleParams, extractSingleParam, getVelocityParamsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WorkflowPluginFactory
getVelocityParams
-
Field Details
-
PARAM_FIELD_ID
- See Also:
-
PARAM_FIELD_VALUE
- See Also:
-
TARGET_FIELD_NAME
- See Also:
-
TARGET_FIELD_VALUE
- See Also:
-
DEFAULT_VALUE
- See Also:
-
-
Constructor Details
-
UpdateIssueFieldFunctionPluginFactory
public UpdateIssueFieldFunctionPluginFactory(FieldManager fieldManager, UserKeyService userKeyService)
-
-
Method Details
-
getVelocityParamsForInput
Description copied from class:AbstractWorkflowPluginFactoryGet velocity parameters for 'input-parameters' velocity template.- Specified by:
getVelocityParamsForInputin classAbstractWorkflowPluginFactory- Parameters:
velocityParams- Map to populate.- See Also:
-
getVelocityParamsForEdit
Description copied from class:AbstractWorkflowPluginFactoryPopulates the given map with velocity parameters for 'edit-parameters' velocity template. Typically an implementation would calldescriptor.getArgs()to retrieve the current configuration, and populate velocityParams from that.- Specified by:
getVelocityParamsForEditin classAbstractWorkflowPluginFactory- Parameters:
velocityParams- Map to populate.descriptor- Eg.FunctionDescriptororConditionDescriptordescribing the function/condition and its current configuration.- See Also:
-
getVelocityParamsForView
Description copied from class:AbstractWorkflowPluginFactoryPopulates the given map with velocity parameters for 'view' velocity template. Eg. calldescriptor.getArgs()to retrieve the current configuration, look up a displayable string for the value and and populate velocityParams with that.- Specified by:
getVelocityParamsForViewin classAbstractWorkflowPluginFactory- Parameters:
velocityParams- Map to populate.descriptor- Eg. aFunctionDescriptororConditionDescriptordescribing the function/condition and its current configuration.- See Also:
-
getDescriptorParams
Description copied from interface:WorkflowPluginFactoryGiven 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'passesConditionmethods. The velocity page often submits values in array form, and this method extracts just the relevant value.- Specified by:
getDescriptorParamsin interfaceWorkflowPluginFactory- 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"}
-
getEditHtml
-
hasCustomEditTemplate
-