public class

WorkflowPermissionFactory

extends Object
java.lang.Object
   ↳ com.atlassian.jira.permission.WorkflowPermissionFactory

Summary

Constants
String PREFIX
String PREFIX_PARENT
Public Constructors
WorkflowPermissionFactory(PermissionTypeManager permTypeManager, UserManager userManager)
Public Methods
final WorkflowPermission createWorkflowPermission(ProjectPermissionKey relevantPermission, boolean isParent, String metaKey, String metaValue)
Create a DefaultWorkflowPermission from a meta attribute key:value pair if it grants a certain permission
List<WorkflowPermission> getWorkflowPermissions(PermissionContext ctx, ProjectPermissionKey permissionId, boolean isParent)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String PREFIX

Constant Value: "jira.permission."

public static final String PREFIX_PARENT

Constant Value: "jira.permission.subtasks."

Public Constructors

public WorkflowPermissionFactory (PermissionTypeManager permTypeManager, UserManager userManager)

Public Methods

public final WorkflowPermission createWorkflowPermission (ProjectPermissionKey relevantPermission, boolean isParent, String metaKey, String metaValue)

Create a DefaultWorkflowPermission from a meta attribute key:value pair if it grants a certain permission

Parameters
relevantPermission Project permission we're interested in
metaKey Key, eg. 'jira.permission.comment.group'
metaValue Value, eg. 'jira-users'
Returns
  • A DefaultWorkflowPermission, or null if the meta key doesn't match relevantPermission.
Throws
IllegalArgumentException If metaKey does not correctly specify a permission.

public List<WorkflowPermission> getWorkflowPermissions (PermissionContext ctx, ProjectPermissionKey permissionId, boolean isParent)