com.atlassian.jira.plugin.workflow
Class AbstractWorkflowPermissionPluginFactory

java.lang.Object
  extended by com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
      extended by com.atlassian.jira.plugin.workflow.AbstractWorkflowPermissionPluginFactory
All Implemented Interfaces:
WorkflowPluginFactory
Direct Known Subclasses:
WorkflowPermissionConditionFactoryImpl, WorkflowPermissionValidatorPluginFactory, WorkflowUserPermissionValidatorPluginFactory

public abstract class AbstractWorkflowPermissionPluginFactory
extends AbstractWorkflowPluginFactory

A common base class for Workflow Plugin Factories that are concerned with Permissions.

Since:
v3.13

Constructor Summary
AbstractWorkflowPermissionPluginFactory(SchemePermissions schemePermissions)
           
 
Method Summary
protected  Map getGroupedPermissions()
          JRA-14306: building a map of maps, so we can use optgroups to display each group of permissions.
protected  void getVelocityParamsForInput(Map velocityParams)
          Get velocity parameters for 'input-parameters' velocity template.
 
Methods inherited from class com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory
createMap, extractMultipleParams, extractSingleParam, getVelocityParams, getVelocityParamsForEdit, getVelocityParamsForView
 
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
getDescriptorParams
 

Constructor Detail

AbstractWorkflowPermissionPluginFactory

public AbstractWorkflowPermissionPluginFactory(SchemePermissions schemePermissions)
Method Detail

getVelocityParamsForInput

protected void getVelocityParamsForInput(Map velocityParams)
Description copied from class: AbstractWorkflowPluginFactory
Get velocity parameters for 'input-parameters' velocity template.

Specified by:
getVelocityParamsForInput in class AbstractWorkflowPluginFactory
Parameters:
velocityParams - Map to populate.
See Also:
AbstractWorkflowPluginFactory.getVelocityParams(String, com.opensymphony.workflow.loader.AbstractDescriptor)

getGroupedPermissions

protected Map getGroupedPermissions()
JRA-14306: building a map of maps, so we can use optgroups to display each group of permissions. Note: we have to catch any permissions that are in schemePermissions.getSchemePermissions() but not covered by the specific group permissions

Returns:
a Map with keys as the i18n key of the group, and the value as the map of permissions for that group.


Copyright © 2002-2008 Atlassian. All Rights Reserved.