Class AbstractFormDashboardGenerator
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.workflow.AbstractFormDashboardGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
FormDashboardGenerator
This class generates all the forms process information for current user
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected UserHelper
The user helperprotected WorkflowHelper
The workflow helper componentprotected WorkflowHistoryHelper
The ametys object resolverFields 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 TypeMethodDescription_getAnswers
(String siteName, String lang, UserIdentity user) Get the list of answers to saxprotected abstract com.opensymphony.workflow.Workflow
Get the workflow of answerprotected void
_saxWorkflowInformations
(Answer answer, UserIdentity user) Sax the workflow informationsvoid
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
-
_currentUserProvider
The current user provider -
_workflowHistoryHelper
The ametys object resolver -
_workflowHelper
The workflow helper component -
_userHelper
The user helper
-
-
Constructor Details
-
AbstractFormDashboardGenerator
public AbstractFormDashboardGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_getAnswers
protected abstract List<Answer> _getAnswers(String siteName, String lang, UserIdentity user) throws FormsException Get the list of answers to sax- Parameters:
siteName
- the site namelang
- the languser
- the user- Returns:
- the list of common answer
- Throws:
FormsException
- if a form error occurred
-
_getWorkflow
Get the workflow of answer- Returns:
- the workflow
-
_saxWorkflowInformations
Sax the workflow informations- Parameters:
answer
- the answeruser
- the user- Throws:
Exception
- if an error occurred
-