java.lang.Object
org.opencastproject.authorization.xacml.manager.impl.AclServiceImpl
All Implemented Interfaces:
AclService

public final class AclServiceImpl extends Object implements AclService
Organization bound impl.
  • Field Details

  • Constructor Details

  • Method Details

    • getAcls

      public List<ManagedAcl> getAcls()
      Description copied from interface: AclService
      Return all ACLs of this organization.
      Specified by:
      getAcls in interface AclService
    • getAcl

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

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

      public boolean updateAcl(ManagedAcl acl)
      Description copied from interface: AclService
      Update an existing ACL.
      Specified by:
      updateAcl in interface AclService
      Returns:
      true on a successful update, false if no ACL exists with the given ID.
    • createAcl

      public Optional<ManagedAcl> createAcl(AccessControlList acl, String name)
      Description copied from interface: AclService
      Create a new ACL.
      Specified by:
      createAcl in interface AclService
      Returns:
      some if the new ACL could be created successfully, none if an ACL with the same name already exists
    • deleteAcl

      public boolean deleteAcl(long id) throws AclServiceException, NotFoundException
      Description copied from interface: AclService
      Delete an ACL by its ID.
      Specified by:
      deleteAcl in interface AclService
      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:
      AclServiceException - if exception occurred
      NotFoundException - if the managed acl could not be found