Class TagCreator

java.lang.Object
com.adobe.acs.commons.mcp.ProcessDefinition
com.adobe.acs.commons.mcp.impl.processes.TagCreator
All Implemented Interfaces:
FormProcessor, Serializable

public class TagCreator extends ProcessDefinition implements Serializable
Creates cq:Tags based on a well defined Excel document.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • 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