Package org.ametys.plugins.forms.data
Class FormEntriesGenerator
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.data.FormEntriesGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Searches the list of forms contained in a given set of contents.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final I18nizableText
The internationalizable text symbolizing the absence of workflow stepprotected static final DateFormat
The date format.protected FormPropertiesManager
The form properties manager.protected FormTableManager
The form data manager.protected I18nUtils
Component gathering utility methods for internationalizable textprotected AmetysObjectResolver
The ametys object resolver.protected WorkflowProvider
The workflow 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
_saxUserEntry
(UserEntry entry, com.opensymphony.workflow.Workflow workflow) Sax a user entry.protected void
_saxWorkflowStep
(AttributesImpl attrs, com.opensymphony.workflow.Workflow workflow, int workflowId) SAX the workflow stepvoid
generate()
void
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
-
_DATE_FORMAT
The date format. -
__MESSAGE_NO_STEP
The internationalizable text symbolizing the absence of workflow step -
_formPropertiesManager
The form properties manager. -
_formTableManager
The form data manager. -
_resolver
The ametys object resolver. -
_workflowProvider
The workflow provider -
_i18nUtils
Component gathering utility methods for internationalizable text
-
-
Constructor Details
-
FormEntriesGenerator
public FormEntriesGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_saxUserEntry
protected void _saxUserEntry(UserEntry entry, com.opensymphony.workflow.Workflow workflow) throws IOException, SAXException, ProcessingException Sax a user entry.- Parameters:
entry
- the user entry.workflow
- the workflow component for form entries- Throws:
IOException
- if an I/O error occurs.SAXException
- if an error occurs generating the XML.ProcessingException
- if a processing error occurs.
-
_saxWorkflowStep
protected void _saxWorkflowStep(AttributesImpl attrs, com.opensymphony.workflow.Workflow workflow, int workflowId) SAX the workflow step- Parameters:
attrs
- The XML attributesworkflow
- the workflow component for form entriesworkflowId
- The workflow id
-