void
|
createInitialSpacePermissions(Space space)
|
void
|
fixPermissions()
|
void
|
flushCaches()
|
List<SpacePermission>
|
getAllPermissionsForGroup(String group)
|
List<SpacePermission>
|
getGlobalPermissions()
|
List<SpacePermission>
|
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(String permissionType, Space space, User remoteUser)
Determines if remoteUser has the given permission in space
|
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
|
hasPermissionForSpace(User user, List permissionTypes, Space space)
|
boolean
|
permissionExists(SpacePermission permission)
Check whether the given SpacePermission exists.
|
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)
Saves the permission.
|