Interface PrivilegeManager


public interface PrivilegeManager
Deprecated.
CQ 5.5
Allows to access, test and modify the Privileges of given Authorizables
Accss rights of the given Session are enforced. The Authorizable related methods can be invoked upon the related Authorizable
See Also:
  • Method Details

    • getPrivilege

      Privilege getPrivilege(String privPath, Authorizable auth, Session session) throws AccessDeniedException
      Deprecated.
      Retrieve the Privilege with the given path for the given authorizable, use the Session to access the repository
      Parameters:
      privPath - identifier of the privilege
      auth - to accss the privilieg for
      session - Session to access the access the repository
      Returns:
      Privilege if one defined or null if none set
      Throws:
      AccessDeniedException - in case Session misses privileges to access
    • grantPrivilege

      Privilege grantPrivilege(String privPath, Authorizable auth, Session session) throws AccessDeniedException, NoSuchPrivilegeException
      Deprecated.
      Set the given Privilege to the Authorizable with the given session
      Parameters:
      privPath - identifier of the privilege
      auth - authorizable to set the privilege to
      session - session to set the privilege with
      Returns:
      Privilge newly set
      Throws:
      AccessDeniedException - in case session misses privileges to grant Privileg
      NoSuchPrivilegeException - in case the given privilege identifier is unknown
    • revokePrivilege

      void revokePrivilege(Privilege privilege, Authorizable auth, Session session) throws AccessDeniedException
      Deprecated.
      Revkes the given privilge from the authorizables
      Parameters:
      privilege - to remove
      auth - the authorizable to remove the Privilege from
      session - to perform the operation
      Throws:
      AccessDeniedException - in case the Session lacks access right to revkoe Privileges
    • getPrivileges

      Collection<Privilege> getPrivileges(Authorizable authorizable, Session session) throws AccessDeniedException
      Deprecated.
      Access all privilages an Authorizable are granted.
      Parameters:
      authorizable - to query
      session - to query with
      Returns:
      all granted Privilages of the given Authorizable
      Throws:
      AccessDeniedException - in case the Session lacks access rights
    • getPrivileges

      Collection<String> getPrivileges(Session session) throws AccessDeniedException
      Deprecated.

      getPrivileges.

      Parameters:
      session - to use for query
      Returns:
      all Priviliges identifiers that are known to this Manager
      Throws:
      AccessDeniedException - in case Session lacks acces rights