Class FormStructureGenerator
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.FormStructureGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
SAX forms and its structures
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormDAO
The form DAOprotected I18nUtils
I18n Utilsprotected LimitedEntriesHelper
The limited entries helperprotected AmetysObjectResolver
The Ametys object resolverprotected RightManager
The right managerprotected ScheduleOpeningHelper
The schedule opening helperprotected CurrentUserProvider
The current user providerFields 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
_addFormLimitationAttributes
(Request request, Form form, AttributesImpl attrs) Add form limitation information to attributesvoid
generate()
protected void
saxBranches
(FormPage page) SAX branch logicprotected void
SAX a form pageprotected void
saxQuestion
(FormQuestion question) SAX a form questionprotected void
saxQuestionRules
(Map<String, Rule> rules) SAX the rules related to this questionvoid
service
(ServiceManager serviceManager) 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 -
_userProvider
The current user provider -
_i18nUtils
I18n Utils -
_limitedEntriesHelper
The limited entries helper -
_scheduleOpeningHelper
The schedule opening helper -
_formDAO
The form DAO -
_rightManager
The right manager
-
-
Constructor Details
-
FormStructureGenerator
public FormStructureGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_addFormLimitationAttributes
Add form limitation information to attributes- Parameters:
request
- the requestform
- the formattrs
- the attributes to fill
-
saxPage
SAX a form page- Parameters:
page
- the page to SAXpageNumber
- the page number- Throws:
SAXException
- if error occurs while SAXing
-
saxQuestion
SAX a form question- Parameters:
question
- the question to SAX- Throws:
SAXException
- if error occurs while SAXing
-
saxBranches
SAX branch logic- Parameters:
page
- the page- Throws:
SAXException
- if error occurs while SAXing
-
saxQuestionRules
SAX the rules related to this question- Parameters:
rules
- map of all the rules having current question as source grouped by target's nameForForm- Throws:
SAXException
- if error occurs while SAXing
-