Interface Acl

All Known Implementing Classes:
Acl.AclImpl

public interface Acl
The access control list.
Author:
Christian Bremer
  • Field Details

  • Method Details

    • builder

      static Acl.AclBuilder builder()
      Builder acl builder.
      Returns:
      the acl builder
    • with

      static Acl with(String owner, Collection<String> defaultPermissions, Collection<String> adminRoles)
      With acl.
      Parameters:
      owner - the owner
      defaultPermissions - the default permissions
      adminRoles - the admin roles
      Returns:
      the acl
    • getOwner

      String getOwner()
      Gets owner.
      Returns:
      the owner
    • getPermissionMap

      SortedMap<String,Ace> getPermissionMap()
      Returns the entries of this access control list. The key of the map is the permission. This map is normally unmodifiable.
      Returns:
      the map
    • modify

      default Optional<Acl> modify(AccessControlListModifications mods, AclUserContext userContext, AccessEvaluation accessEvaluation, Collection<String> permissions)
      Modifies the access control list. If the modification forbidden, an empty optional will be returned, otherwise the modified access control list.
      Parameters:
      mods - the modifications
      userContext - the user context
      accessEvaluation - the access evaluation
      permissions - the permissions
      Returns:
      the optional