Class DataImporter

  • All Implemented Interfaces:
    FormProcessor

    public class DataImporter
    extends ProcessDefinition
    Read node and metadata from a spreadsheet and update underlying node storage with provided data.
    • Constructor Detail

      • DataImporter

        public DataImporter()
    • Method Detail

      • init

        public void init()
                  throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • buildProcess

        public void buildProcess​(ProcessInstance instance,
                                 org.apache.sling.api.resource.ResourceResolver rr)
                          throws org.apache.sling.api.resource.LoginException,
                                 javax.jcr.RepositoryException
        Specified by:
        buildProcess in class ProcessDefinition
        Throws:
        org.apache.sling.api.resource.LoginException
        javax.jcr.RepositoryException
      • storeReport

        public void storeReport​(ProcessInstance instance,
                                org.apache.sling.api.resource.ResourceResolver rr)
                         throws javax.jcr.RepositoryException,
                                org.apache.sling.api.resource.PersistenceException
        Specified by:
        storeReport in class ProcessDefinition
        Throws:
        javax.jcr.RepositoryException
        org.apache.sling.api.resource.PersistenceException
      • handleMissingNode

        public void handleMissingNode​(String path,
                                      org.apache.sling.api.resource.ResourceResolver rr,
                                      Map<String,​CompositeVariant> row)
                               throws org.apache.sling.api.resource.PersistenceException
        Throws:
        org.apache.sling.api.resource.PersistenceException