Class SummaryExportGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.plugins.forms.generators.SummaryExportGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generate a stat map of a form's entries
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormStatisticsHelper
The form statistics helperprotected AmetysObjectResolver
The Ametys Object resolverprotected RightManager
The right managerFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Sax a boolean question statsprotected void
Sax a choices list question statsprotected void
Sax a default question statsprotected void
_saxMatrixStats
(Map<String, Map<String, Map<String, Object>>> statsMap, FormQuestion question) Sax a matrix question statsprotected void
_saxQuestionStats
(Form form, Map<String, Map<String, Map<String, Object>>> statsMap, String questionName) Sax a question stats for summary exportvoid
generate()
void
service
(ServiceManager smanager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
_resolver
The Ametys Object resolver -
_formStatsHelper
The form statistics helper -
_rightManager
The right manager
-
-
Constructor Details
-
SummaryExportGenerator
public SummaryExportGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_saxQuestionStats
protected void _saxQuestionStats(Form form, Map<String, Map<String, throws SAXExceptionMap<String, Object>>> statsMap, String questionName) Sax a question stats for summary export- Parameters:
form
- current formstatsMap
- map with stats valuesquestionName
- the name for form of the question- Throws:
SAXException
- exception while saxing question
-
_saxMatrixStats
protected void _saxMatrixStats(Map<String, Map<String, throws SAXExceptionMap<String, Object>>> statsMap, FormQuestion question) Sax a matrix question stats- Parameters:
statsMap
- map with stats valuesquestion
- the question- Throws:
SAXException
- if a saxing error occurred
-
_saxChoicesStats
protected void _saxChoicesStats(Map<String, Map<String, throws SAXExceptionMap<String, Object>>> statsMap, String questionName) Sax a choices list question stats- Parameters:
statsMap
- map with stats valuesquestionName
- the question name- Throws:
SAXException
- if a saxing error occurred
-
_saxBooleanStats
protected void _saxBooleanStats(Map<String, Map<String, throws SAXExceptionMap<String, Object>>> statsMap, String questionName) Sax a boolean question stats- Parameters:
statsMap
- map with stats valuesquestionName
- the question name- Throws:
SAXException
- if a saxing error occurred
-
_saxDefaultQuestionStats
protected void _saxDefaultQuestionStats(Map<String, Map<String, throws SAXExceptionMap<String, Object>>> statsMap, String questionName) Sax a default question stats- Parameters:
statsMap
- map with stats valuesquestionName
- the question name- Throws:
SAXException
- if a saxing error occurred
-