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:
    Authorizable
    • Method Detail

      • getPrivilege

        Privilege getPrivilege​(java.lang.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
      • 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

        java.util.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

        java.util.Collection<java.lang.String> getPrivileges​(Session session)
                                                      throws AccessDeniedException
        Deprecated.
        Parameters:
        session - to use for query
        Returns:
        all Priviliges identifiers that are known to this Manager
        Throws:
        AccessDeniedException - in case Session lacks acces rights