Class WorkflowUserPermissionValidatorPluginFactory
java.lang.Object
com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
com.atlassian.jira.plugin.workflow.AbstractWorkflowPermissionPluginFactory
com.atlassian.jira.plugin.workflow.WorkflowPermissionValidatorPluginFactory
com.atlassian.jira.plugin.workflow.WorkflowUserPermissionValidatorPluginFactory
- All Implemented Interfaces:
WorkflowPluginFactory,WorkflowPluginValidatorFactory,WorkflowValidatorDescriptorEditPreprocessor
public class WorkflowUserPermissionValidatorPluginFactory
extends WorkflowPermissionValidatorPluginFactory
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowUserPermissionValidatorPluginFactory(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptiongetDescriptorParams(Map<String, Object> conditionParams) Given a set of name:value parameters from the plugin configuration page (ie.protected voidpopulateTemplateParamsForInputAndEdit(Map<String, Object> velocityParams, Map<?, ?> descriptorArgs) protected voidpopulateTemplateParamsForView(Map<String, Object> velocityParams, Map<?, ?> descriptorArgs) Methods inherited from class com.atlassian.jira.plugin.workflow.WorkflowPermissionValidatorPluginFactory
beforeSaveOnEdit, extractArgsMethods inherited from class com.atlassian.jira.plugin.workflow.AbstractWorkflowPermissionPluginFactory
clearLegacyPermissionArgument, getVelocityParamsForEdit, getVelocityParamsForInput, getVelocityParamsForViewMethods inherited from class com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
createMap, extractMultipleParams, extractSingleParam, getVelocityParamsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.plugin.workflow.WorkflowPluginFactory
getVelocityParams
-
Constructor Details
-
WorkflowUserPermissionValidatorPluginFactory
public WorkflowUserPermissionValidatorPluginFactory(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
-
-
Method Details
-
populateTemplateParamsForInputAndEdit
protected void populateTemplateParamsForInputAndEdit(Map<String, Object> velocityParams, Map<?, ?> descriptorArgs) - Overrides:
populateTemplateParamsForInputAndEditin classAbstractWorkflowPermissionPluginFactory
-
populateTemplateParamsForView
protected void populateTemplateParamsForView(Map<String, Object> velocityParams, Map<?, ?> descriptorArgs) - Overrides:
populateTemplateParamsForViewin classAbstractWorkflowPermissionPluginFactory
-
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- Overrides:
getDescriptorParamsin classAbstractWorkflowPermissionPluginFactory- 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"}
-