|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpacePermissionManager
| Method Summary | |
|---|---|
void |
createInitialSpacePermissions(Space space,
User creator)
|
void |
fixPermissions()
|
void |
flushCaches()
|
List |
getGlobalPermissions()
|
List |
getGlobalPermissions(String permissionType)
|
Map |
getGroupsForPermissionType(String permissionType,
Space space)
|
Collection |
getGroupsWithPermissions(Space space)
Returns all groups wich have permissions in a space or on a global level. |
Map |
getUsersForPermissionType(String permissionType,
Space space)
|
Collection |
getUsersWithPermissions(Space space)
Returns a collection of user objects with VIEWSPACE_PERMISSION in the space. |
boolean |
groupHasPermission(String permissionType,
Space space,
String group)
Checks whether the given group has the given permission If a null space is specified, this method looks up matching global permissions, otherwise space's permissions list is queried to see if the permission matches. |
boolean |
hasPermission(List permissionTypes,
Space space,
User remoteUser)
Determines if remoteUser has the given permissions in space If remoteUser lacks any of the given permissions, false is returned. |
boolean |
hasPermission(String permissionType,
Space space,
User remoteUser)
Determines if remoteUser has the given permission in space |
boolean |
hasPermissionForSpace(User user,
List permissionTypes,
Space space)
|
void |
removeAllPermissions(Space space)
Removes all permissions belonging to space |
void |
removeAllPermissionsForGroup(String group)
|
void |
removeAllUserPermissions(String username)
|
void |
removePermission(SpacePermission permission)
|
void |
savePermission(SpacePermission permission)
|
| Method Detail |
|---|
void savePermission(SpacePermission permission)
void removeAllPermissions(Space space)
space - The space to remove the permissions forvoid removePermission(SpacePermission permission)
boolean hasPermission(String permissionType,
Space space,
User remoteUser)
permissionType - The permission type to look upspace - The space the permission applies to (can be null for global permissions)remoteUser - The user to look up (can be null for the anonymous user)
boolean hasPermission(List permissionTypes,
Space space,
User remoteUser)
permissionTypes - A List of permission types (see SpacePermission) to checkspace - The space the permissions apply toremoteUser - The user to look up
void removeAllUserPermissions(String username)
void removeAllPermissionsForGroup(String group)
List getGlobalPermissions()
List getGlobalPermissions(String permissionType)
void fixPermissions()
void flushCaches()
boolean groupHasPermission(String permissionType,
Space space,
String group)
group - The group to look up the permission forspace - The space the permission applies to (can be null for global permissions)permissionType - The permission type to look up
void createInitialSpacePermissions(Space space,
User creator)
boolean hasPermissionForSpace(User user,
List permissionTypes,
Space space)
Collection getGroupsWithPermissions(Space space)
space -
Map getGroupsForPermissionType(String permissionType,
Space space)
Collection getUsersWithPermissions(Space space)
space -
Map getUsersForPermissionType(String permissionType,
Space space)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||