public class WorkflowPermissionFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX |
static String |
PREFIX_PARENT |
Constructor and Description |
---|
WorkflowPermissionFactory(PermissionTypeManager permTypeManager,
UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String PREFIX
public static final String PREFIX_PARENT
public WorkflowPermissionFactory(PermissionTypeManager permTypeManager, UserManager userManager)
public List<WorkflowPermission> getWorkflowPermissions(PermissionContext ctx, ProjectPermissionKey permissionId, boolean isParent)
public final WorkflowPermission createWorkflowPermission(ProjectPermissionKey relevantPermission, boolean isParent, String metaKey, String metaValue)
DefaultWorkflowPermission
from a meta attribute key:value pair if it grants a certain permissionrelevantPermission
- Project permission we're interested inisParent
- metaKey
- Key, eg. 'jira.permission.comment.group'metaValue
- Value, eg. 'jira-users'IllegalArgumentException
- If metaKey does not correctly specify a permission.Copyright © 2002-2016 Atlassian. All Rights Reserved.