com.atlassian.jira.permission
Interface WorkflowPermission

All Known Implementing Classes:
DefaultWorkflowPermission, DenyWorkflowPermission

public interface WorkflowPermission

Represents a single permission granted in the JIRA workflow XML.


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.
 

Method Detail

getUsers

Set getUsers(PermissionContext ctx)
Get users specified by this permission (eg. group members, or a single user).

Returns:
A set of Users.

allows

boolean allows(int permission,
               Issue issue,
               com.atlassian.crowd.embedded.api.User user)
Whether this workflow permission allows a permission.

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.


Copyright © 2002-2011 Atlassian. All Rights Reserved.