com.atlassian.jira.permission
Class WorkflowPermissionFactory
java.lang.Object
com.atlassian.jira.permission.WorkflowPermissionFactory
public class WorkflowPermissionFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
PREFIX_PARENT
public static final String PREFIX_PARENT
- See Also:
- Constant Field Values
WorkflowPermissionFactory
public WorkflowPermissionFactory(PermissionTypeManager permTypeManager)
getWorkflowPermissions
public List<WorkflowPermission> getWorkflowPermissions(PermissionContext ctx,
int permissionId,
boolean isParent)
createWorkflowPermission
public final WorkflowPermission createWorkflowPermission(int 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
- Permission we're interested inisParent
- 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.
Copyright © 2002-2012 Atlassian. All Rights Reserved.