Interface DefaultConfluenceAccessManager.AccessManagerPermissionChecker
-
- All Known Implementing Classes:
AbstractSpacePermissionManager,AbstractSpacePermissionManager,CachingSpacePermissionManager,CoarseGrainedCachingSpacePermissionManager,DefaultSpacePermissionManager,DefaultSpacePermissionManager,RecoveryAwareCachingSpacePermissionManager,RecoveryAwareCGCachingSpacePermissionManager
- Enclosing class:
- DefaultConfluenceAccessManager
public static interface DefaultConfluenceAccessManager.AccessManagerPermissionCheckerInternal interface for consumption by access manager; an implementation detail, intentionally not a top-level interface.Don't use this interface for other purposes, e.g. performing permission checks: you probably want
PermissionManagerinstead, or maybeSpacePermissionManager.Implementations must be cached, as this is code is executed in all PermissionManager and SpacePermissionManager implementations before hitting their own caches.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanhasGlobalPermissionViaGroups(@NonNull ConfluenceUser user, String permissionType)Check whether the given user has the given global permission via group memberships.default booleanhasGlobalPermissionViaGroups(@NonNull com.atlassian.user.User user, String permissionType)Deprecated, for removal: This API element is subject to removal in a future version.since 8.8 usehasGlobalPermissionViaGroups(ConfluenceUser, String)booleanpermissionExists(SpacePermission permission)Check whether the given SpacePermission exists.
-
-
-
Method Detail
-
permissionExists
boolean permissionExists(SpacePermission permission)
Check whether the given SpacePermission exists. Checks by attribute equality rather than by id.- Parameters:
permission- the permission to look for.- Returns:
- true if the permission is recognised by the manager as existing.
-
hasGlobalPermissionViaGroups
boolean hasGlobalPermissionViaGroups(@NonNull ConfluenceUser user, String permissionType)
Check whether the given user has the given global permission via group memberships.- Parameters:
permissionType- theSpacePermissiontype to look for.- Returns:
- true if the user has this permission specifically via group memberships
- Since:
- 8.8
-
hasGlobalPermissionViaGroups
@Deprecated(forRemoval=true) default boolean hasGlobalPermissionViaGroups(@NonNull com.atlassian.user.User user, String permissionType)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.8 usehasGlobalPermissionViaGroups(ConfluenceUser, String)Check whether the given user has the given global permission via group memberships.- Parameters:
permissionType- theSpacePermissiontype to look for.- Returns:
- true if the user has this permission specifically via group memberships
-
-