Interface SpacePermissionManagerInternal
- All Superinterfaces:
SpacePermissionManager
,SpacePermissionSaver
,SpacePermissionSaverInternal
- All Known Implementing Classes:
AbstractSpacePermissionManager
,CachingSpacePermissionManager
,CoarseGrainedCachingSpacePermissionManager
,DefaultSpacePermissionManager
,DelegatingSpacePermissionManager
,ReadOnlySpacePermissionManager
,RecoveryAwareCachingSpacePermissionManager
,RecoveryAwareCGCachingSpacePermissionManager
,RecoveryAwareSpacePermissionManager
,ScopesAwareSpacePermissionManager
,SpacePermissionCoordinator
@Transactional
public interface SpacePermissionManagerInternal
extends SpacePermissionManager, SpacePermissionSaverInternal
Internal version of the
SpacePermissionManager
; see package-info.java for rationale.- Since:
- 5.9
-
Method Summary
Modifier and TypeMethodDescriptionvoid
removeAllPermissions
(Space space, SpacePermissionContext context) Removes all permissions belonging to spacevoid
removeAllPermissionsForGroup
(String group, SpacePermissionContext context) Removes all permissions for the given group.void
removeAllUserPermissions
(ConfluenceUser user, SpacePermissionContext context) Removes all permissions for the given user.void
removeGlobalPermissionForUser
(ConfluenceUser user, String permissionType, SpacePermissionContext context) Removes global permission of specified type that is directly associated with a user.void
removePermission
(SpacePermission permission, SpacePermissionContext context) Removes the given permission.void
removePermissions
(Collection<SpacePermission> permissionsToRemove, SpacePermissionContext context) Removes the given permissions.Methods inherited from interface com.atlassian.confluence.security.SpacePermissionManager
createDefaultSpacePermissions, createPrivateSpacePermissions, flushCaches, getAllPermissionsForGroup, getDefaultGlobalPermissions, getGlobalPermissions, getGlobalPermissions, getGroupsForPermissionType, getGroupsWithPermissions, getPermissionsForAnonymousUsers, getPermissionsForGroup, getPermissionsForUser, getUsersForPermissionType, getUsersWithPermissions, groupHasPermission, hasAllPermissions, hasPermission, hasPermissionForSpace, hasPermissionNoExemptions, isPermittedInReadOnlyAccessMode, permissionExists, removeAllPermissions, removeAllPermissionsForGroup, removeAllUserPermissions, removeGlobalPermissionForUser, removePermission
Methods inherited from interface com.atlassian.confluence.security.SpacePermissionSaver
savePermission
Methods inherited from interface com.atlassian.confluence.internal.security.SpacePermissionSaverInternal
saveGlobalPermissions, savePermission, saveSpacePermissions
-
Method Details
-
removeAllPermissions
Removes all permissions belonging to space- Parameters:
space
- The space to remove the permissions forcontext
- The context for this removal
-
removePermission
Removes the given permission.May generate a
SpacePermissionRemoveEvent
in the process, depending on the context.- Parameters:
permission
- the permission to removecontext
- the context for the removal
-
removePermissions
void removePermissions(Collection<SpacePermission> permissionsToRemove, SpacePermissionContext context) Removes the given permissions.May generate a
SpacePermissionRemoveEvent
in the process, depending on the context.- Parameters:
permissionsToRemove
- the permissions to removecontext
- the context for the removal
-
removeAllUserPermissions
Removes all permissions for the given user.May generate a
SpacePermissionsRemoveForUserEvent
in the process, depending on the context.- Parameters:
user
- the user to remove permissions forcontext
- the context for the removal
-
removeGlobalPermissionForUser
void removeGlobalPermissionForUser(ConfluenceUser user, String permissionType, SpacePermissionContext context) Removes global permission of specified type that is directly associated with a user.May generate a
SpacePermissionsRemoveForUserEvent
in the process, depending on the context.- Parameters:
user
- the user to look uppermissionType
- the permission type to removecontext
- the context for the removal
-
removeAllPermissionsForGroup
Removes all permissions for the given group.May generate a
SpacePermissionsRemoveForGroupEvent
in the process, depending on the context.- Parameters:
group
- the group to remove
-