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
public class FormEntriesGenerator extends ServiceableGenerator
Searches the list of forms contained in a given set of contents.
-
-
Field Summary
Fields Modifier and Type Field Description protected static I18nizableText
__MESSAGE_NO_STEP
The internationalizable text symbolizing the absence of workflow stepprotected static DateFormat
_DATE_FORMAT
The date format.protected FormPropertiesManager
_formPropertiesManager
The form properties manager.protected FormTableManager
_formTableManager
The form data manager.protected I18nUtils
_i18nUtils
Component gathering utility methods for internationalizable textprotected AmetysObjectResolver
_resolver
The ametys object resolver.protected WorkflowProvider
_workflowProvider
The workflow provider-
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
Constructors Constructor Description FormEntriesGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
_DATE_FORMAT
protected static final DateFormat _DATE_FORMAT
The date format.
-
__MESSAGE_NO_STEP
protected static final I18nizableText __MESSAGE_NO_STEP
The internationalizable text symbolizing the absence of workflow step
-
_formPropertiesManager
protected FormPropertiesManager _formPropertiesManager
The form properties manager.
-
_formTableManager
protected FormTableManager _formTableManager
The form data manager.
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver.
-
_workflowProvider
protected WorkflowProvider _workflowProvider
The workflow provider
-
_i18nUtils
protected I18nUtils _i18nUtils
Component gathering utility methods for internationalizable text
-
-
Constructor Detail
-
FormEntriesGenerator
public FormEntriesGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_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
-
-