public class

UpdateIssueFieldFunctionPluginFactory

extends AbstractWorkflowPluginFactory
implements WorkflowPluginFunctionFactory
java.lang.Object
   ↳ com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
     ↳ com.atlassian.jira.plugin.workflow.UpdateIssueFieldFunctionPluginFactory

Summary

Constants
String DEFAULT_VALUE
String PARAM_FIELD_ID
String PARAM_FIELD_VALUE
String TARGET_FIELD_NAME
String TARGET_FIELD_VALUE
Public Constructors
UpdateIssueFieldFunctionPluginFactory(FieldManager fieldManager, UserKeyService userKeyService)
Public Methods
Map getDescriptorParams(Map conditionParams)
String getEditHtml(OrderableField field, Object value)
boolean hasCustomEditTemplate(Field field)
Protected Methods
void getVelocityParamsForEdit(Map velocityParams, AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'edit-parameters' velocity template.
void getVelocityParamsForInput(Map velocityParams)
Get velocity parameters for 'input-parameters' velocity template.
void getVelocityParamsForView(Map velocityParams, AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'view' velocity template.
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
From class java.lang.Object
From interface com.atlassian.jira.plugin.workflow.WorkflowPluginFactory

Constants

public static final String DEFAULT_VALUE

Constant Value: "-1"

public static final String PARAM_FIELD_ID

Constant Value: "fieldId"

public static final String PARAM_FIELD_VALUE

Constant Value: "fieldValue"

public static final String TARGET_FIELD_NAME

Constant Value: "field.name"

public static final String TARGET_FIELD_VALUE

Constant Value: "field.value"

Public Constructors

public UpdateIssueFieldFunctionPluginFactory (FieldManager fieldManager, UserKeyService userKeyService)

Public Methods

public Map getDescriptorParams (Map conditionParams)

public String getEditHtml (OrderableField field, Object value)

public boolean hasCustomEditTemplate (Field field)

Protected Methods

protected void getVelocityParamsForEdit (Map 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 velocityParams)

Get velocity parameters for 'input-parameters' velocity template.

Parameters
velocityParams Map to populate.

protected void getVelocityParamsForView (Map 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.