Class NodeFactory


  • public class NodeFactory
    extends Object
    the strategy and their implementations to create new nodes in various types during the 'create' operation of the 'node' servlet
    • Constructor Detail

      • NodeFactory

        public NodeFactory()
    • Method Detail

      • createNode

        public javax.jcr.Node createNode​(org.apache.sling.api.SlingHttpServletRequest request,
                                         javax.jcr.Node parentNode,
                                         String name,
                                         com.composum.sling.core.servlet.NodeTreeServlet.NodeParameters parameters)
                                  throws javax.jcr.RepositoryException,
                                         IOException,
                                         com.composum.sling.core.exception.ParameterValidationException
        Throws:
        javax.jcr.RepositoryException
        IOException
        com.composum.sling.core.exception.ParameterValidationException
      • setMimeTypeByData

        public static void setMimeTypeByData​(String name,
                                             javax.jcr.Node node,
                                             javax.jcr.Property property)
                                      throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException