Interface DefaultConfluenceAccessManager.AccessManagerPermissionChecker

All Known Implementing Classes:
AbstractSpacePermissionManager, CachingSpacePermissionManager, CoarseGrainedCachingSpacePermissionManager, 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 maybe SpacePermissionManager.

Implementations must be cached, as this is code is executed in all PermissionManager and SpacePermissionManager implementations before hitting their own caches.

  • Method Details

    • 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 - the SpacePermission type to look for.
      Returns:
      true if the user has this permission specifically via group memberships
      Since:
      8.8
    • hasGlobalPermissionViaGroups

      @Deprecated default 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 - the SpacePermission type to look for.
      Returns:
      true if the user has this permission specifically via group memberships