Class TagCreator

    • Method Detail

      • init

        public void init()
                  throws javax.jcr.RepositoryException
        Specified by:
        init in interface FormProcessor
        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
      • parseTags

        public void parseTags​(ActionManager manager)
                       throws Exception
        Parses the input Excel file and creates a list of TagDefinition objects to process.
        Parameters:
        manager - the action manager
        Throws:
        IOException
        Exception
      • importTags

        public void importTags​(ActionManager manager)
        Perform the tag creation based on the successfully parsed values in parseTags(..).
        Parameters:
        manager - the action manager
      • 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