Class DataImporter
- java.lang.Object
-
- com.adobe.acs.commons.mcp.ProcessDefinition
-
- com.adobe.acs.commons.mcp.impl.processes.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataImporter.MergeModestatic classDataImporter.ReportColumns
-
Constructor Summary
Constructors Constructor Description DataImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildProcess(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr)voidhandleMissingNode(String path, org.apache.sling.api.resource.ResourceResolver rr, Map<String,CompositeVariant> row)protected voidincrementCount(EnumMap<DataImporter.ReportColumns,Object> row, int amt)voidinit()voidstoreReport(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr)protected EnumMap<DataImporter.ReportColumns,Object>trackActivity(String item, String action, Integer count)-
Methods inherited from class com.adobe.acs.commons.mcp.ProcessDefinition
getName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.mcp.form.FormProcessor
parseInputs
-
-
-
-
Field Detail
-
TOTAL
public static final String TOTAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
trackActivity
protected EnumMap<DataImporter.ReportColumns,Object> trackActivity(String item, String action, Integer count)
-
incrementCount
protected void incrementCount(EnumMap<DataImporter.ReportColumns,Object> row, int amt)
-
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:
buildProcessin classProcessDefinition- Throws:
org.apache.sling.api.resource.LoginExceptionjavax.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:
storeReportin classProcessDefinition- Throws:
javax.jcr.RepositoryExceptionorg.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
-
-