Class TagReporter
- java.lang.Object
-
- com.adobe.acs.commons.mcp.ProcessDefinition
-
- com.adobe.acs.commons.mcp.impl.processes.TagReporter
-
- All Implemented Interfaces:
FormProcessor,Serializable
public class TagReporter extends ProcessDefinition implements Serializable
Creates a report of the tags in an AEM instance, showing how many times they are referenced- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTagReporter.ItemStatusstatic classTagReporter.ReferenceMethodstatic classTagReporter.ReportColumns
-
Field Summary
Fields Modifier and Type Field Description static intCELL_CHAR_LIMITbooleanincludeReferencesstatic StringPROCESS_NAMETagReporter.ReferenceMethodreferenceMethodStringreferencesCharacterLimitStringrootSearchPathStringtagPath
-
Constructor Summary
Constructors Constructor Description TagReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildProcess(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr)GenericReportgetReport()List<EnumMap<TagReporter.ReportColumns,Object>>getReportRows()voidinit()voidrecordTags(ActionManager manager)voidstoreReport(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr)voidtraverseTags(ActionManager manager)-
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
-
PROCESS_NAME
public static final String PROCESS_NAME
- See Also:
- Constant Field Values
-
CELL_CHAR_LIMIT
public static final int CELL_CHAR_LIMIT
- See Also:
- Constant Field Values
-
rootSearchPath
public transient String rootSearchPath
-
tagPath
public transient String tagPath
-
includeReferences
public boolean includeReferences
-
referencesCharacterLimit
public String referencesCharacterLimit
-
referenceMethod
public TagReporter.ReferenceMethod referenceMethod
-
-
Method Detail
-
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
-
getReport
public GenericReport getReport()
-
getReportRows
public List<EnumMap<TagReporter.ReportColumns,Object>> getReportRows()
-
init
public void init() throws javax.jcr.RepositoryException- Specified by:
initin interfaceFormProcessor- Throws:
javax.jcr.RepositoryException
-
recordTags
public void recordTags(ActionManager 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:
storeReportin classProcessDefinition- Throws:
javax.jcr.RepositoryExceptionorg.apache.sling.api.resource.PersistenceException
-
traverseTags
public void traverseTags(ActionManager manager) throws Exception
- Throws:
Exception
-
-