Class RecoveryAwareCGCachingSpacePermissionManager
java.lang.Object
com.atlassian.confluence.impl.security.AbstractSpacePermissionManager
com.atlassian.confluence.impl.security.CoarseGrainedCachingSpacePermissionManager
com.atlassian.confluence.impl.security.recovery.RecoveryAwareCGCachingSpacePermissionManager
- All Implemented Interfaces:
SpacePermissionManagerInternal
,SpacePermissionSaverInternal
,DefaultConfluenceAccessManager.AccessManagerPermissionChecker
,SpacePermissionManager
,SpacePermissionSaver
@Deprecated(since="9.2.6",
forRemoval=true)
public class RecoveryAwareCGCachingSpacePermissionManager
extends CoarseGrainedCachingSpacePermissionManager
Deprecated, for removal: This API element is subject to removal in a future version.
An extension of
CoarseGrainedCachingSpacePermissionManager
that supports recovery mode.
The class is introduced due to that the current design of SpacePermissionManager does not support a clean decoration.- Since:
- 6.5.1
-
Field Summary
Fields inherited from class com.atlassian.confluence.impl.security.CoarseGrainedCachingSpacePermissionManager
spacePermissionDao
-
Constructor Summary
ConstructorsConstructorDescriptionRecoveryAwareCGCachingSpacePermissionManager
(PermissionCheckExemptions permissionCheckExemptions, com.atlassian.cache.CacheFactory cacheFactory, SpacePermissionManagerInternal delegate, SpacePermissionDao spacePermissionDao, com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceAccessManager confluenceAccessManager, SpacePermissionAccessMapper spacePermissionAccessMapper, com.atlassian.crowd.embedded.api.CrowdService crowdService, AccessModeManager accessModeManager, GlobalSettingsManager settingsManager) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermissionNoExemptions
(String permissionType, @Nullable Space space, @Nullable ConfluenceUser remoteUser) Deprecated, for removal: This API element is subject to removal in a future version.Returns true if the user has the specified permission on the target space.Methods inherited from class com.atlassian.confluence.impl.security.CoarseGrainedCachingSpacePermissionManager
createDefaultSpacePermissions, createPrivateSpacePermissions, flushCaches, getAllPermissionsForGroup, getGlobalPermissions, getGlobalPermissions, getGroupNamesWithPermission, getGroupsForPermissionType, getGroupsWithPermissions, getPermissionsForAnonymousUsers, getPermissionsForGroup, getPermissionsForUser, getUsersForPermissionType, getUsersWithPermissions, permissionExists, prime, removeAllPermissions, removeAllPermissions, removeAllPermissionsForGroup, removeAllPermissionsForGroup, removeAllUserPermissions, removeAllUserPermissions, removeGlobalPermissionForUser, removeGlobalPermissionForUser, removePermission, removePermission, removePermissions, saveGlobalPermissions, savePermission, savePermission, saveSpacePermissions
Methods inherited from class com.atlassian.confluence.impl.security.AbstractSpacePermissionManager
getDefaultGlobalPermissions, groupHasPermission, groupInheritsPermission, hasAllPermissions, hasGlobalPermissionViaGroups, hasPermission, hasPermissionForSpace, hasPermissionNoExemptionsExceptViaNestedGroups, isPermittedInReadOnlyAccessMode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.security.access.DefaultConfluenceAccessManager.AccessManagerPermissionChecker
hasGlobalPermissionViaGroups
Methods inherited from interface com.atlassian.confluence.security.SpacePermissionManager
getDefaultGlobalPermissions, groupHasPermission, groupInheritsPermission, hasAllPermissions, hasAllPermissions, hasPermission, hasPermission, hasPermissionForSpace, hasPermissionForSpace, hasPermissionNoExemptions, hasPermissionNoExemptionsExceptViaNestedGroups, isPermittedInReadOnlyAccessMode
-
Constructor Details
-
RecoveryAwareCGCachingSpacePermissionManager
public RecoveryAwareCGCachingSpacePermissionManager(PermissionCheckExemptions permissionCheckExemptions, com.atlassian.cache.CacheFactory cacheFactory, SpacePermissionManagerInternal delegate, SpacePermissionDao spacePermissionDao, com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceAccessManager confluenceAccessManager, SpacePermissionAccessMapper spacePermissionAccessMapper, com.atlassian.crowd.embedded.api.CrowdService crowdService, AccessModeManager accessModeManager, GlobalSettingsManager settingsManager) Deprecated, for removal: This API element is subject to removal in a future version.- Since:
- 7.5
-
-
Method Details
-
hasPermissionNoExemptions
public boolean hasPermissionNoExemptions(String permissionType, @Nullable Space space, @Nullable ConfluenceUser remoteUser) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpacePermissionManager
Returns true if the user has the specified permission on the target space. This method does not allow exemptions for super-users likeSpacePermissionManager.hasPermission(String, Space, User)
does.For parameter and return value information, see
SpacePermissionManager.hasPermission(String, Space, User)
.- Specified by:
hasPermissionNoExemptions
in interfaceSpacePermissionManager
- Overrides:
hasPermissionNoExemptions
in classAbstractSpacePermissionManager
-
RecoveryAwareSpacePermissionManager
instead.