|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public boolean addPermission(int permissionType, String group) throws CreateException
permissionType
- must be a global permission typegroup
- can be null if it is anyone permission
CreateException
public Collection getPermissions(int permissionType)
permissionType
- must be a global permission
JiraPermission
public boolean removePermission(int permissionType, String group) throws RemoveException
permissionType
- must be a global permission typegroup
- can be null if it is anyone permission
RemoveException
public boolean removePermissions(String group) throws RemoveException
group
- must NOT be null and the group must exist
RemoveException
public boolean hasPermission(int permissionType)
permissionType
- must be global permissionpublic boolean hasPermission(int permissionType, User u)
permissionType
- must be a global permissionu
- must not be nullpublic boolean hasPermission(int permissionId, String group)
permissionId
- must be a global permissiongroup
- namepublic Collection 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 |