Interface ACLManagement


  • @ProviderType
    public interface ACLManagement
    AccessControlManagement...
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clearACL​(javax.jcr.Node node)
      Removes all ACLs from the given node.
      boolean ensureAccessControllable​(javax.jcr.Node node, String policyPrimaryType)
      Checks if the given node is access controllable, i.e. has the respective mixin and adds it if missing.
      boolean isAccessControllableMixin​(String name)
      Checks if the given node type name is use as access controllable mixin.
      boolean isACLNode​(javax.jcr.Node node)
      Checks if the given node is an ACL node.
      boolean isACLNodeType​(String name)
      Checks if the given node type name is used for ACLs
    • Method Detail

      • isACLNodeType

        boolean isACLNodeType​(String name)
        Checks if the given node type name is used for ACLs
        Parameters:
        name - the node type name
        Returns:
        true if used for ACLs
      • isAccessControllableMixin

        boolean isAccessControllableMixin​(String name)
        Checks if the given node type name is use as access controllable mixin.
        Parameters:
        name - the node type name
        Returns:
        true if the name is the mixin name
      • isACLNode

        boolean isACLNode​(javax.jcr.Node node)
                   throws javax.jcr.RepositoryException
        Checks if the given node is an ACL node.
        Parameters:
        node - the node
        Returns:
        true if it's an ACL node.
        Throws:
        javax.jcr.RepositoryException - if an error occurs
      • ensureAccessControllable

        boolean ensureAccessControllable​(javax.jcr.Node node,
                                         String policyPrimaryType)
                                  throws javax.jcr.RepositoryException
        Checks if the given node is access controllable, i.e. has the respective mixin and adds it if missing.
        Parameters:
        node - the node to check
        policyPrimaryType - Primary node type of policy
        Returns:
        true if was made access controllable
        Throws:
        javax.jcr.RepositoryException - if an error occurs
      • clearACL

        void clearACL​(javax.jcr.Node node)
               throws javax.jcr.RepositoryException
        Removes all ACLs from the given node.
        Parameters:
        node - the node
        Throws:
        javax.jcr.RepositoryException - if an error occurs