Interface DefaultConfluenceAccessManager.AccessManagerPermissionChecker
-
- All Known Implementing Classes:
AbstractSpacePermissionManager
,AbstractSpacePermissionManager
,CachingSpacePermissionManager
,CoarseGrainedCachingSpacePermissionManager
,DefaultSpacePermissionManager
,DefaultSpacePermissionManager
,RecoveryAwareCachingSpacePermissionManager
,RecoveryAwareCGCachingSpacePermissionManager
- Enclosing class:
- DefaultConfluenceAccessManager
public static interface DefaultConfluenceAccessManager.AccessManagerPermissionChecker
Internal 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
PermissionManager
instead, 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 Modifier and Type Method Description boolean
hasGlobalPermissionViaGroups(@NonNull com.atlassian.user.User user, String permissionType)
Check whether the given user has the given global permission via group memberships.boolean
permissionExists(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 com.atlassian.user.User user, String permissionType)
Check whether the given user has the given global permission via group memberships.- Parameters:
permissionType
- theSpacePermission
type to look for.- Returns:
- true if the user has this permission specifically via group memberships
-
-