com.atlassian.jira.plugin.workflow
Class WorkflowUserPermissionValidatorPluginFactory

java.lang.Object
  extended by com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
      extended by com.atlassian.jira.plugin.workflow.AbstractWorkflowPermissionPluginFactory
          extended by com.atlassian.jira.plugin.workflow.WorkflowPermissionValidatorPluginFactory
              extended by com.atlassian.jira.plugin.workflow.WorkflowUserPermissionValidatorPluginFactory
All Implemented Interfaces:
WorkflowPluginFactory, WorkflowPluginValidatorFactory, WorkflowValidatorDescriptorEditPreprocessor

public class WorkflowUserPermissionValidatorPluginFactory
extends WorkflowPermissionValidatorPluginFactory


Constructor Summary
WorkflowUserPermissionValidatorPluginFactory(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
           
 
Method Summary
 Map<String,?> getDescriptorParams(Map<String,Object> conditionParams)
          Given a set of name:value parameters from the plugin configuration page (ie.
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.WorkflowPermissionValidatorPluginFactory
beforeSaveOnEdit, extractArgs
 
Methods inherited from class com.atlassian.jira.plugin.workflow.AbstractWorkflowPermissionPluginFactory
clearLegacyPermissionArgument, getVelocityParamsForEdit, getVelocityParamsForInput, getVelocityParamsForView
 
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
 
Methods inherited from interface com.atlassian.jira.plugin.workflow.WorkflowPluginFactory
getVelocityParams
 

Constructor Detail

WorkflowUserPermissionValidatorPluginFactory

public WorkflowUserPermissionValidatorPluginFactory(JiraAuthenticationContext authenticationContext,
                                                    PermissionManager permissionManager)
Method Detail

populateTemplateParamsForInputAndEdit

protected void populateTemplateParamsForInputAndEdit(Map<String,Object> velocityParams,
                                                     Map<?,?> descriptorArgs)
Overrides:
populateTemplateParamsForInputAndEdit in class AbstractWorkflowPermissionPluginFactory

populateTemplateParamsForView

protected void populateTemplateParamsForView(Map<String,Object> velocityParams,
                                             Map<?,?> descriptorArgs)
Overrides:
populateTemplateParamsForView in class AbstractWorkflowPermissionPluginFactory

getDescriptorParams

public Map<String,?> getDescriptorParams(Map<String,Object> conditionParams)
Description copied from interface: WorkflowPluginFactory
Given 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' passesCondition methods. The velocity page often submits values in array form, and this method extracts just the relevant value.

Specified by:
getDescriptorParams in interface WorkflowPluginFactory
Overrides:
getDescriptorParams in class AbstractWorkflowPermissionPluginFactory
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"}


Copyright © 2002-2015 Atlassian. All Rights Reserved.