Package com.adobe.acs.commons.mcp.model
Class GenericReport
- java.lang.Object
-
- com.adobe.acs.commons.mcp.model.GenericReport
-
@ProviderType @Model(adaptables=org.apache.sling.api.resource.Resource.class, defaultInjectionStrategy=OPTIONAL) public class GenericReport extends ObjectDescribes a very simple table, which is up to the process definition to outline.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERIC_REPORT_RESOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description GenericReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getColumnNames()List<String>getColumns()StringgetName()StringgetResourceType()List<org.apache.sling.api.resource.ValueMap>getRows()voidpersist(org.apache.sling.api.resource.ResourceResolver rr, String path)voidsetName(String name)<E extends Enum<E>,V>
voidsetRows(List<EnumMap<E,V>> reportData, Class<E> enumClass)<E extends Enum<E>,V>
voidsetRows(Map<String,EnumMap<E,V>> reportData, String keyName, Class<E> enumClass)
-
-
-
Field Detail
-
GENERIC_REPORT_RESOURCE_TYPE
public static final String GENERIC_REPORT_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceType
public String getResourceType()
-
persist
public void persist(org.apache.sling.api.resource.ResourceResolver rr, String path) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException- Throws:
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryException
-
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.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
-
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
-
-