Interface PrivilegeStore


  • public interface PrivilegeStore
    Deprecated.
    CQ 5.5
    Storage for Privileges' optional configuration data.
    Releaves PrivilegeFactories from the management and possible errors on protection etc. The Store provieds a Node for each Privilege-Authorizable combination. Which can be further used as persistence. The Store must enforce proper access-rights.
    • Method Detail

      • hasPrivilege

        boolean hasPrivilege​(Authorizable authorizable,
                             java.lang.String privilegePath)
                      throws javax.jcr.AccessDeniedException
        Deprecated.

        hasPrivilege.

        Parameters:
        authorizable - a Authorizable object.
        privilegePath - a String object.
        Returns:
        a boolean.
        Throws:
        javax.jcr.AccessDeniedException - if any.
      • getPrivilegeNode

        javax.jcr.Node getPrivilegeNode​(Authorizable authorizable,
                                        java.lang.String privilegePath)
                                 throws javax.jcr.AccessDeniedException
        Deprecated.

        getPrivilegeNode.

        Parameters:
        authorizable - a Authorizable object.
        privilegePath - a String object.
        Returns:
        a Node object.
        Throws:
        javax.jcr.AccessDeniedException - if any.
      • getPrivileges

        java.util.Collection<java.lang.String> getPrivileges​(Authorizable authorizable)
                                                      throws javax.jcr.AccessDeniedException
        Deprecated.

        getPrivileges.

        Parameters:
        authorizable - a Authorizable object.
        Returns:
        a Collection object.
        Throws:
        javax.jcr.AccessDeniedException - if any.
      • setPrivilege

        void setPrivilege​(Authorizable authorizable,
                          java.lang.String privilegePath)
                   throws javax.jcr.AccessDeniedException
        Deprecated.

        setPrivilege.

        Parameters:
        authorizable - a Authorizable object.
        privilegePath - a String object.
        Throws:
        javax.jcr.AccessDeniedException - if any.
      • removePrivilege

        void removePrivilege​(Authorizable authorizable,
                             java.lang.String privilegePath)
                      throws javax.jcr.AccessDeniedException
        Deprecated.

        removePrivilege.

        Parameters:
        authorizable - a Authorizable object.
        privilegePath - a String object.
        Throws:
        javax.jcr.AccessDeniedException - if any.