java.lang.Object
org.opencastproject.authorization.xacml.manager.impl.persistence.JpaAclDb
All Implemented Interfaces:
AclDb

public final class JpaAclDb extends Object implements AclDb
JPA based impl of an AclDb.
  • Constructor Details

    • JpaAclDb

      public JpaAclDb()
  • Method Details

    • activate

      public void activate()
    • deactivate

      public void deactivate()
    • setDBSessionFactory

      public void setDBSessionFactory(DBSessionFactory dbSessionFactory)
    • setEntityManagerFactory

      public void setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
    • getAcls

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

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

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

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

      public boolean deleteAcl(Organization org, long id)
      Description copied from interface: AclDb
      Delete an ACL by its ID.
      Specified by:
      deleteAcl in interface AclDb
      Returns:
      true if the ACL existed and could be deleted successfully, false if there is no such ACL.