Class JcrHelper


  • public class JcrHelper
    extends Object
    Helper class for common jcr operations
    • Method Detail

      • isNodeType

        public static boolean isNodeType​(Node node,
                                         String type)
                                  throws RepositoryException
        Determine whether node is of the specified type, by using the jcr:mixinTypes property. This is necessary when a mixin has been added to the node, but the node hasn't been saved yet.
        Parameters:
        node -
        type -
        Returns:
        true when the node is of the specified type
        Throws:
        RepositoryException
      • isVirtualNode

        public static boolean isVirtualNode​(Node node)
                                     throws RepositoryException
        Determine whether node in question is a virtual node.
        Parameters:
        node - the node to check for virtuality
        Returns:
        whether the node is a virtual node or not
        Throws:
        RepositoryException
      • isVirtualRoot

        public static boolean isVirtualRoot​(Node node)
                                     throws RepositoryException
        Determine whether the node is a virtual root node (facet search or facet navigation)
        Parameters:
        node -
        Throws:
        RepositoryException