public class DefaultWorkflowPermission extends Object implements WorkflowPermission
<meta name="jira.permission.edit.group">acme-devs</meta>or
<meta name="jira.permission.delete.lead"></meta>
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX |
static String |
PREFIX_PARENT |
Modifier | Constructor and Description |
---|---|
protected |
DefaultWorkflowPermission(ProjectPermissionKey permission,
SecurityType grantType,
String value,
boolean isParentPermission) |
Modifier and Type | Method and Description |
---|---|
boolean |
allows(ProjectPermissionKey permission,
Issue issue,
ApplicationUser user)
Whether this workflow permission allows a permission.
|
Set<ApplicationUser> |
getUsers(PermissionContext ctx)
Get users specified by this permission (eg.
|
String |
toString() |
public static final String PREFIX
public static final String PREFIX_PARENT
protected DefaultWorkflowPermission(ProjectPermissionKey permission, SecurityType grantType, String value, boolean isParentPermission)
public Set<ApplicationUser> getUsers(PermissionContext ctx)
WorkflowPermission
getUsers
in interface WorkflowPermission
ApplicationUser
s.public boolean allows(ProjectPermissionKey permission, Issue issue, ApplicationUser user)
WorkflowPermission
allows
in interface WorkflowPermission
permission
- The requested permissionissue
- The current issue whose workflow step we consider.user
- The user requesting the permissionCopyright © 2002-2019 Atlassian. All Rights Reserved.