Class NodeUtil


  • public class NodeUtil
    extends Object
    • Constructor Detail

      • NodeUtil

        public NodeUtil()
    • Method Detail

      • getId

        public String getId​(javax.jcr.Node node)
        Retrieves the nodes id.
        Returns:
        a hopefully useful ID (not null)
      • getTitle

        public static String getTitle​(javax.jcr.Node node)
        Retrieves the title with a fallback to the nodes name.
        Parameters:
        node -
        Returns:
        the usable title (not blank)
      • getNodeTitle

        public static String getNodeTitle​(javax.jcr.Node node)
        Retrieves the 'jcr:title' property value from a node
        Parameters:
        node -
        Returns:
        the title value or null if not present
      • mangleNodeName

        public static String mangleNodeName​(String name)
        TODO(rw,2015-04-22) not useful in the core layer
        Parameters:
        name -
        Returns:
      • isNodeType

        public static boolean isNodeType​(javax.jcr.Node node,
                                         String... nodeType)
                                  throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException