| com.atlassian.confluence.security.SpacePermissionManager |
Known Indirect Subclasses
|
Responsible for the addition, modification and removal of space permissions. This interface is not for checking whether a user
has permission to do something; for that see PermissionManager.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates all the initial permissions (in this list
GENERIC_SPACE_PERMISSIONS) in the specified space. | |||||||||||
Returns all groups wich have permissions in a space or on a global level.
| |||||||||||
Returns a collection of user objects with VIEWSPACE_PERMISSION in the space.
| |||||||||||
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.
| |||||||||||
Determines if remoteUser has the given permission in space
| |||||||||||
Determines if remoteUser has the given permissions in space
If remoteUser lacks any of the given permissions, false is returned.
| |||||||||||
Check whether the given SpacePermission exists.
| |||||||||||
Removes all permissions belonging to space
| |||||||||||
Saves the permission.
| |||||||||||
Creates all the initial permissions (in this list GENERIC_SPACE_PERMISSIONS) in the specified space.
Returns all groups wich have permissions in a space or on a global level. If space is null, permissions on the global level will be checked.
| space | - space to query, if null global permissions returned |
|---|
Returns a collection of user objects with VIEWSPACE_PERMISSION in the space. If no space is provided A list of users with USE_CONFLUENCE_PERMISSION will be returned
| space | - space to query, if null global permissions returned |
|---|
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. Similarly, if permissionType is not a space permission, a matching global permission is looked up.| permissionType | The permission type to look up |
|---|---|
| space | The space the permission applies to (can be null for global permissions) |
| group | The group to look up the permission for |
Determines if remoteUser has the given permission in space
| permissionType | The permission type to look up |
|---|---|
| space | 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) |
Determines if remoteUser has the given permissions in space
If remoteUser lacks any of the given permissions, false is returned.| permissionTypes | A List of permission types (see SpacePermission) to check |
|---|---|
| space | The space the permissions apply to |
| remoteUser | The user to look up |
Check whether the given SpacePermission exists. Checks by attribute equality rather than by id.
| permission | the permission to look for. |
|---|
Removes all permissions belonging to space
| space | The space to remove the permissions for |
|---|