Class FormMailQuestionGenerator
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.FormEntryInformationGenerator
org.ametys.plugins.forms.generators.FormMailQuestionGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generate the display of an answer to a question type in a mail body
-
Field Summary
Fields inherited from class org.ametys.plugins.forms.generators.FormEntryInformationGenerator
_currentUserProvider, _formEntryDAO, _formQuestionDAO, _resolver, _userManager
Fields 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
_checkRights
(FormEntry entry) Check right before saxing entryprotected List<FormQuestion>
_getQuestions
(FormEntry entry, Optional<Long> currentStepId) Get the questions of the given entryprotected void
_saxQuestion
(FormQuestion question, FormEntry entry) Sax the questionMethods inherited from class org.ametys.plugins.forms.generators.FormEntryInformationGenerator
_addAdditionalEntryAttributes, _displayField, _saxEntry, generate, service
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
-
Constructor Details
-
FormMailQuestionGenerator
public FormMailQuestionGenerator()
-
-
Method Details
-
_checkRights
Description copied from class:FormEntryInformationGenerator
Check right before saxing entry- Overrides:
_checkRights
in classFormEntryInformationGenerator
- Parameters:
entry
- the entry
-
_getQuestions
Description copied from class:FormEntryInformationGenerator
Get the questions of the given entry- Overrides:
_getQuestions
in classFormEntryInformationGenerator
- Parameters:
entry
- the entrycurrentStepId
- the current step id. Can be empty- Returns:
- the list of question
-
_saxQuestion
Description copied from class:FormEntryInformationGenerator
Sax the question- Overrides:
_saxQuestion
in classFormEntryInformationGenerator
- Parameters:
question
- the questionentry
- the entry- Throws:
SAXException
- if a saxing exception occurred
-