|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.hosted.DefaultSpaceGroupPermissionManager
public class DefaultSpaceGroupPermissionManager
Constructor Summary | |
---|---|
DefaultSpaceGroupPermissionManager(SpaceGroupPermissionDao spaceGroupPermissionDao)
|
Method Summary | |
---|---|
java.util.List<SpaceGroupPermission> |
getPermissionsForUser(java.lang.String username)
Get space group permissions for the user. |
java.util.List<java.lang.String> |
getUsersWithPermission(SpaceGroup spaceGroup,
java.lang.String type)
Returns a collection of usernames with VIEWSPACEGROUP_PERMISSION in the spacegroup. |
boolean |
hasPermission(java.lang.String permissionType,
SpaceGroup spaceGroup,
com.atlassian.user.User remoteUser)
Determines if remoteUser has the given permission in space |
void |
removeAllGroupPermissions(java.lang.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(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSpaceGroupPermissionManager(SpaceGroupPermissionDao spaceGroupPermissionDao)
Method Detail |
---|
public void savePermission(SpaceGroupPermission permission)
SpaceGroupPermissionManager
savePermission
in interface SpaceGroupPermissionManager
public void removePermission(SpaceGroupPermission permission)
SpaceGroupPermissionManager
removePermission
in interface SpaceGroupPermissionManager
permission
- The SpaceGroupPermission that should be removedpublic void removeAllUserPermissions(java.lang.String username)
SpaceGroupPermissionManager
removeAllUserPermissions
in interface SpaceGroupPermissionManager
username
- the name of the user whose permissions should be removedpublic void removeAllGroupPermissions(java.lang.String groupname)
SpaceGroupPermissionManager
removeAllGroupPermissions
in interface SpaceGroupPermissionManager
groupname
- the name of the user grouppublic void removeAllPermissionsForSpaceGroup(SpaceGroup spaceGroup)
SpaceGroupPermissionManager
removeAllPermissionsForSpaceGroup
in interface SpaceGroupPermissionManager
spaceGroup
- the name of the SpaceGrouppublic boolean hasPermission(java.lang.String permissionType, SpaceGroup spaceGroup, com.atlassian.user.User remoteUser)
SpaceGroupPermissionManager
hasPermission
in interface SpaceGroupPermissionManager
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)
public java.util.List<java.lang.String> getUsersWithPermission(SpaceGroup spaceGroup, java.lang.String type)
SpaceGroupPermissionManager
getUsersWithPermission
in interface SpaceGroupPermissionManager
spaceGroup
- - space to query, if null global permissions returned
public java.util.List<SpaceGroupPermission> getPermissionsForUser(java.lang.String username)
SpaceGroupPermissionManager
getPermissionsForUser
in interface SpaceGroupPermissionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |