Interface SpacePermissionManagerInternal
-
- All Superinterfaces:
SpacePermissionManager
,SpacePermissionSaver
,SpacePermissionSaverInternal
- All Known Implementing Classes:
AbstractSpacePermissionManager
,AbstractSpacePermissionManager
,CachingSpacePermissionManager
,CoarseGrainedCachingSpacePermissionManager
,DefaultSpacePermissionManager
,DefaultSpacePermissionManager
,ReadOnlySpacePermissionManager
,RecoveryAwareCachingSpacePermissionManager
,RecoveryAwareCGCachingSpacePermissionManager
,SpacePermissionCoordinator
@Transactional public interface SpacePermissionManagerInternal extends SpacePermissionManager, SpacePermissionSaverInternal
Internal version of theSpacePermissionManager
; see package-info.java for rationale.- Since:
- 5.9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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.-
Methods inherited from interface com.atlassian.confluence.security.SpacePermissionManager
createDefaultSpacePermissions, createPrivateSpacePermissions, flushCaches, getAllPermissionsForGroup, getDefaultGlobalPermissions, getGlobalPermissions, getGlobalPermissions, getGroupsForPermissionType, getGroupsWithPermissions, 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
savePermission
-
-
-
-
Method Detail
-
removeAllPermissions
void removeAllPermissions(Space space, SpacePermissionContext context)
Removes all permissions belonging to space- Parameters:
space
- The space to remove the permissions forcontext
- The context for this removal
-
removePermission
void removePermission(SpacePermission permission, SpacePermissionContext context)
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
-
removeAllUserPermissions
void removeAllUserPermissions(ConfluenceUser user, SpacePermissionContext context)
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
void removeAllPermissionsForGroup(String group, SpacePermissionContext context)
Removes all permissions for the given group.May generate a
SpacePermissionsRemoveForGroupEvent
in the process, depending on the context.- Parameters:
group
- the group to remove
-
-