|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
com.atlassian.jira.plugin.workflow.AbstractWorkflowPermissionPluginFactory
public abstract class AbstractWorkflowPermissionPluginFactory
A common base class for Workflow Plugin Factories that are concerned with Permissions.
| Constructor Summary | |
|---|---|
protected |
AbstractWorkflowPermissionPluginFactory(JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager)
|
| Method Summary | |
|---|---|
protected void |
clearLegacyPermissionArgument(Map<?,?> descriptorArgs)
|
protected abstract Map<?,?> |
extractArgs(com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
|
Map<String,?> |
getDescriptorParams(Map<String,Object> params)
Given a set of name:value parameters from the plugin configuration page (ie. |
protected void |
getVelocityParamsForEdit(Map<String,Object> velocityParams,
com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'edit-parameters' velocity template. |
protected void |
getVelocityParamsForInput(Map<String,Object> velocityParams)
Get velocity parameters for 'input-parameters' velocity template. |
protected void |
getVelocityParamsForView(Map<String,Object> velocityParams,
com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
Populates the given map with velocity parameters for 'view' velocity template. |
protected void |
populateTemplateParamsForInputAndEdit(Map<String,Object> velocityParams,
Map<?,?> descriptorArgs)
|
protected void |
populateTemplateParamsForView(Map<String,Object> velocityParams,
Map<?,?> descriptorArgs)
|
| Methods inherited from class com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory |
|---|
createMap, extractMultipleParams, extractSingleParam, getVelocityParams |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractWorkflowPermissionPluginFactory(JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager)
| Method Detail |
|---|
public Map<String,?> getDescriptorParams(Map<String,Object> params)
WorkflowPluginFactoryexecute()
or conditions' passesCondition
methods.
The velocity page often submits values in array form, and this method extracts just the relevant value.
params - Parameters from the velocity template, eg. {"fieldId" : ["assignee"], "fieldValue":["-1"]}
protected void getVelocityParamsForInput(Map<String,Object> velocityParams)
AbstractWorkflowPluginFactory
getVelocityParamsForInput in class AbstractWorkflowPluginFactoryvelocityParams - Map to populate.AbstractWorkflowPluginFactory.getVelocityParams(String, com.opensymphony.workflow.loader.AbstractDescriptor)
protected void getVelocityParamsForEdit(Map<String,Object> 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 populateTemplateParamsForInputAndEdit(Map<String,Object> velocityParams,
Map<?,?> descriptorArgs)
protected void getVelocityParamsForView(Map<String,Object> 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)
protected void populateTemplateParamsForView(Map<String,Object> velocityParams,
Map<?,?> descriptorArgs)
protected abstract Map<?,?> extractArgs(com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
protected void clearLegacyPermissionArgument(Map<?,?> descriptorArgs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||