|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlobalPermissionManager
Method Summary | |
---|---|
boolean |
addPermission(int permissionType,
String group)
Adds a global permission |
Collection |
getGroupNames(int permissionId)
Retrieve all the group names with this permission. |
Collection |
getGroups(int permissionId)
Retrieve all the groups with this permission. |
Collection |
getPermissions(int permissionType)
Retrieve all the global permissions of a particular type |
boolean |
hasPermission(int permissionType)
Check if a global permission is granted for an Anonymous user. |
boolean |
hasPermission(int permissionType,
User u)
Check if a global permission for one of the users groups exists. |
boolean |
removePermission(int permissionType,
String group)
Removes a global permission |
boolean |
removePermissions(String group)
Remove a global permissions that the group passed in |
Method Detail |
---|
boolean addPermission(int permissionType, String group) throws CreateException
permissionType
- must be a global permission typegroup
- can be null if it is anyone permission
CreateException
Collection getPermissions(int permissionType)
permissionType
- must be a global permission
JiraPermission
, must never return nullboolean removePermission(int permissionType, String group) throws RemoveException
permissionType
- must be a global permission typegroup
- can be null if it is anyone permission
RemoveException
boolean removePermissions(String group) throws RemoveException
group
- must NOT be null and the group must exist
RemoveException
boolean hasPermission(int permissionType)
Permissions.ADMINISTER
and the lookup is false then the same
query will be executed for the Permissions.SYSTEM_ADMIN
permission type, since
it is implied that having a Permissions.SYSTEM_ADMIN
permission grants
Permissions.ADMINISTER
rights.
permissionType
- must be global permissionboolean hasPermission(int permissionType, User u)
Permissions.ADMINISTER
and the lookup is false then the same
query will be executed for the Permissions.SYSTEM_ADMIN
permission type, since
it is implied that having a Permissions.SYSTEM_ADMIN
permission grants
Permissions.ADMINISTER
rights.
permissionType
- must be a global permissionu
- must not be nullCollection getGroups(int permissionId)
permissionId
- must be a global permission
Group
's, will never be null.Collection getGroupNames(int permissionId)
permissionId
- must be a global permission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |