com.atlassian.jira.permission
Class DenyWorkflowPermission

java.lang.Object
  extended by com.atlassian.jira.permission.DenyWorkflowPermission
All Implemented Interfaces:
WorkflowPermission

public class DenyWorkflowPermission
extends Object
implements WorkflowPermission

Denies the permission for everyone.


Constructor Summary
DenyWorkflowPermission(int permissionId)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DenyWorkflowPermission

public DenyWorkflowPermission(int permissionId)
Method Detail

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 Users.

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 permission
issue - 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-2014 Atlassian. All Rights Reserved.