public class WorkflowAllowOnlyReporterConditionFactoryImpl extends Object implements WorkflowPluginConditionFactory
Constructor and Description |
---|
WorkflowAllowOnlyReporterConditionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Map |
getDescriptorParams(Map conditionParams)
Given a set of name:value parameters from the plugin configuration page (ie.
|
Map |
getVelocityParams(String resourceName,
com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
Given a plugin resource name, return the parameters it needs.
|
public WorkflowAllowOnlyReporterConditionFactoryImpl()
public Map getVelocityParams(String resourceName, com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
WorkflowPluginFactory
getVelocityParams
in interface WorkflowPluginFactory
resourceName
- Typically "view", "input-parameters" or "edit-parameters".descriptor
- A ConditionDescriptor
describing the Condition and its current configuration.public Map getDescriptorParams(Map conditionParams)
WorkflowPluginFactory
execute()
or conditions' passesCondition
methods.
The velocity page often submits values in array form, and this method extracts just the relevant value.getDescriptorParams
in interface WorkflowPluginFactory
conditionParams
- Parameters from the velocity template, eg. {"fieldId" : ["assignee"], "fieldValue":["-1"]}Copyright © 2002-2015 Atlassian. All Rights Reserved.