Class GenericReport


  • @ProviderType
    @Model(adaptables=org.apache.sling.api.resource.Resource.class,
           defaultInjectionStrategy=OPTIONAL)
    public class GenericReport
    extends Object
    Describes a very simple table, which is up to the process definition to outline.
    • Constructor Detail

      • GenericReport

        public GenericReport()
    • 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.PersistenceException
        javax.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.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()