Package com.adobe.acs.commons.mcp.model
Class AbstractReport
java.lang.Object
com.adobe.acs.commons.mcp.model.AbstractReport
- Direct Known Subclasses:
GenericBlobReport,GenericReport
The abstract base class for a report;
-
Field Details
-
columnsData
-
rowsData
-
nameData
-
-
Constructor Details
-
AbstractReport
public AbstractReport()
-
-
Method Details
-
persist
public abstract void persist(org.apache.sling.api.resource.ResourceResolver rr, String path) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException Persist all data stored in the properties- Parameters:
rr- a resourceresolver to usepath- the path to store the report at- Throws:
org.apache.sling.api.resource.PersistenceException- in case of problemsjavax.jcr.RepositoryException- in case of problems
-
setRows
public <E extends Enum<E>,V> void setRows(Map<String, EnumMap<E, throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryExceptionV>> reportData, String keyName, Class<E> enumClass) - Throws:
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryException
-
setRows
public <E extends Enum<E>,V> void setRows(List<EnumMap<E, V>> reportData, Class<E> enumClass) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException- Throws:
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryException
-
getColumns
- Returns:
- the columns
-
getRows
- Returns:
- the rows
-
getName
-
setName
- Parameters:
name- the name to set
-
getColumnNames
-