|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpaceGroupPermissionManager
Method Summary | |
---|---|
List<SpaceGroupPermission> |
getPermissionsForUser(String username)
Get space group permissions for the user. |
List<String> |
getUsersWithPermission(SpaceGroup spaceGroup,
String type)
Returns a collection of usernames with VIEWSPACEGROUP_PERMISSION in the spacegroup. |
boolean |
hasPermission(String permissionType,
SpaceGroup spaceGroup,
com.atlassian.user.User remoteUser)
Determines if remoteUser has the given permission in space |
void |
removeAllGroupPermissions(String groupname)
Removes all permissions on the space-group for a particular user-group |
void |
removeAllPermissionsForSpaceGroup(SpaceGroup spaceGroup)
Removes all permissions on the space-group for a particular SpaceGroup |
void |
removeAllUserPermissions(String username)
Removes all permissions on the space-group for a particular user |
void |
removePermission(SpaceGroupPermission permission)
Removes a single SpaceGroupPermission |
void |
savePermission(SpaceGroupPermission permission)
Saves the permission. |
Method Detail |
---|
void savePermission(SpaceGroupPermission permission)
boolean hasPermission(String permissionType, SpaceGroup spaceGroup, com.atlassian.user.User remoteUser)
permissionType
- The permission type to look upspaceGroup
- The spacegroup the permission applies to (can not be null)remoteUser
- The user to look up (can be null for the anonymous user)
IllegalArgumentException
- if spacegroup is nullList<String> getUsersWithPermission(SpaceGroup spaceGroup, String type)
spaceGroup
- - space to query, if null global permissions returned
IllegalArgumentException
- if spacegroup is nullList<SpaceGroupPermission> getPermissionsForUser(String username)
username
-
IllegalArgumentException
- if username is nullvoid removePermission(SpaceGroupPermission permission)
permission
- The SpaceGroupPermission that should be removed
IllegalArgumentException
- if username is nullvoid removeAllUserPermissions(String username)
username
- the name of the user whose permissions should be removed
IllegalArgumentException
- if username is nullvoid removeAllGroupPermissions(String groupname)
groupname
- the name of the user group
IllegalArgumentException
- if username is nullvoid removeAllPermissionsForSpaceGroup(SpaceGroup spaceGroup)
spaceGroup
- the name of the SpaceGroup
IllegalArgumentException
- if username is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |