Class FormAdminDashboardGenerator
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
org.ametys.plugins.forms.generators.FormDashboardGenerator
org.ametys.plugins.forms.generators.FormAdminDashboardGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
This class generates all the forms process information for current user
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormAdminDashboardHelper
The form admin dashboard helperprotected FormMailHelper
The form mail helperprotected UserManager
The user managerFields inherited from class org.ametys.plugins.forms.generators.FormDashboardGenerator
_formDAO, _resolver, _workflowProvider
Fields inherited from class org.ametys.plugins.forms.workflow.AbstractFormDashboardGenerator
_currentUserProvider, _userHelper, _workflowHelper, _workflowHistoryHelper
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 org.ametys.plugins.forms.generators.FormAdminDashboardGenerator.EntriesRecord
_getAvailableFormEntries
(String formId, int page, int nbEntriesByPage) Get available form entries for given pageprotected void
Sax the form dashboard dataprotected void
_saxFormEntries
(Request request, String formId, UserIdentity user) Sax the form entriesprotected void
Sax the formsprotected void
_saxWorkflowInformations
(Answer answer, UserIdentity user) Sax the workflow informationsvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.plugins.forms.generators.FormDashboardGenerator
_formEntry2Answer, _getAnswers, _getWorkflow
Methods inherited from class org.ametys.plugins.forms.workflow.AbstractFormDashboardGenerator
_saxAnswer, _saxAnswers, generate
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
-
_userManager
The user manager -
_formMailHelper
The form mail helper -
_formAdminDashboardHelper
The form admin dashboard helper
-
-
Constructor Details
-
FormAdminDashboardGenerator
public FormAdminDashboardGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classFormDashboardGenerator
- Throws:
ServiceException
-
_saxFormDashboardData
Description copied from class:AbstractFormDashboardGenerator
Sax the form dashboard data- Overrides:
_saxFormDashboardData
in classAbstractFormDashboardGenerator
- Parameters:
user
- the current user- Throws:
SAXException
- if a sax exception occurred
-
_saxForms
Sax the forms- Parameters:
forms
- the list of form- Throws:
SAXException
- if a saxing error occurred
-
_getAvailableFormEntries
protected org.ametys.plugins.forms.generators.FormAdminDashboardGenerator.EntriesRecord _getAvailableFormEntries(String formId, int page, int nbEntriesByPage) Get available form entries for given page- Parameters:
formId
- the form idpage
- the pagenbEntriesByPage
- the number of entries by page- Returns:
- the entries record
-
_saxFormEntries
protected void _saxFormEntries(Request request, String formId, UserIdentity user) throws SAXException Sax the form entries- Parameters:
request
- the requestformId
- the form iduser
- the current user- Throws:
SAXException
- if a saxing error occurred
-
_saxWorkflowInformations
Description copied from class:AbstractFormDashboardGenerator
Sax the workflow informations- Overrides:
_saxWorkflowInformations
in classAbstractFormDashboardGenerator
- Parameters:
answer
- the answeruser
- the user- Throws:
Exception
- if an error occurred
-