All Known Implementing Classes:
AclServiceImpl

public interface AclService
ACL service API for managing ACLs.
  • Method Details

    • getAcls

      List<ManagedAcl> getAcls()
      Return all ACLs of this organization.
    • getAcl

      Optional<ManagedAcl> getAcl(long id)
      Return an ACL of an organization by its ID.
      Returns:
      some if the ACL could be found, none if the ACL with the given ID does not exist.
    • getAcl

      Optional<ManagedAcl> getAcl(String name)
      Return an ACL of an organization by its name.
      Returns:
      some if the ACL could be found, none if the ACL with the given name does not exist.
    • updateAcl

      boolean updateAcl(ManagedAcl acl)
      Update an existing ACL.
      Returns:
      true on a successful update, false if no ACL exists with the given ID.
    • createAcl

      Optional<ManagedAcl> createAcl(AccessControlList acl, String name)
      Create a new ACL.
      Returns:
      some if the new ACL could be created successfully, none if an ACL with the same name already exists
    • deleteAcl

      boolean deleteAcl(long id) throws AclServiceException, NotFoundException
      Delete an ACL by its ID.
      Returns:
      true if the ACL existed and could be deleted successfully, false if the ACL can't be deleted because it still has active references on it.
      Throws:
      NotFoundException - if the managed acl could not be found
      AclServiceException - if exception occurred