Class AbstractReport

java.lang.Object
com.adobe.acs.commons.mcp.model.AbstractReport
Direct Known Subclasses:
GenericBlobReport, GenericReport

public abstract class AbstractReport extends Object
The abstract base class for a report;
  • Field Details

    • columnsData

      protected List<String> columnsData
    • rowsData

      protected List<org.apache.sling.api.resource.ValueMap> rowsData
    • nameData

      protected String 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 use
      path - the path to store the report at
      Throws:
      org.apache.sling.api.resource.PersistenceException - in case of problems
      javax.jcr.RepositoryException - in case of problems
    • setRows

      public <E extends Enum<E>, V> void setRows(Map<String,EnumMap<E,V>> reportData, String keyName, Class<E> enumClass) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException
      Throws:
      org.apache.sling.api.resource.PersistenceException
      javax.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.PersistenceException
      javax.jcr.RepositoryException
    • getColumns

      public List<String> getColumns()
      Returns:
      the columns
    • getRows

      public List<org.apache.sling.api.resource.ValueMap> getRows()
      Returns:
      the rows
    • getName

      public String getName()
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getColumnNames

      public List<String> getColumnNames()