com.atlassian.jira.permission
Class DefaultWorkflowPermission
java.lang.Object
com.atlassian.jira.permission.DefaultWorkflowPermission
- All Implemented Interfaces:
- WorkflowPermission
public class DefaultWorkflowPermission
- extends Object
- implements WorkflowPermission
Represents a single permission granted in the JIRA workflow XML, eg:
<meta name="jira.permission.edit.group">${pkey}-interest</meta>
or
<meta name="jira.permission.delete.lead"></meta>
Method Summary |
boolean |
allows(int permission,
Issue issue,
User user)
Whether this workflow permission allows a permission. |
boolean |
allows(int permission,
Issue issue,
com.atlassian.crowd.embedded.api.User user)
Whether this workflow permission allows a permission. |
Set |
getUsers(PermissionContext ctx)
Get users specified by this permission (eg. |
String |
toString()
|
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
PREFIX_PARENT
public static final String PREFIX_PARENT
- See Also:
- Constant Field Values
DefaultWorkflowPermission
protected DefaultWorkflowPermission(int permission,
SecurityType grantType,
String value,
boolean isParentPermission)
getUsers
public Set getUsers(PermissionContext ctx)
- Description copied from interface:
WorkflowPermission
- Get users specified by this permission (eg. group members, or a single user).
- Specified by:
getUsers
in interface WorkflowPermission
- Returns:
- A set of
User
s.
allows
public final boolean allows(int permission,
Issue issue,
User user)
- Description copied from interface:
WorkflowPermission
- Whether this workflow permission allows a permission.
- Specified by:
allows
in interface WorkflowPermission
- Parameters:
permission
- The requested permissionissue
- The current issue whose workflow step we consider.user
- The user requesting the permission
- Returns:
- Whether the workflow grants the permission.
allows
public boolean allows(int permission,
Issue issue,
com.atlassian.crowd.embedded.api.User user)
- Description copied from interface:
WorkflowPermission
- Whether this workflow permission allows a permission.
- Specified by:
allows
in interface WorkflowPermission
- Parameters:
permission
- The requested permissionissue
- The current issue whose workflow step we consider.user
- The user requesting the permission
- Returns:
- Whether the workflow grants the permission.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2011 Atlassian. All Rights Reserved.