|
||||||||||
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 |
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 anonymous permission exists |
boolean |
hasPermission(int permissionId,
String group)
Check if a global permission for one of the groups |
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
boolean 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)
permissionType
- must be global permissionboolean hasPermission(int permissionType, User u)
permissionType
- must be a global permissionu
- must not be nullboolean hasPermission(int permissionId, String group)
permissionId
- must be a global permissiongroup
- nameCollection getGroups(int permissionId)
permissionId
- must be a global permission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |