Class GetSubmissionAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.forms.content.actions.GetSubmissionAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Get the number of submissions for one calendar for a form
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormPropertiesManager
Form properties manager.protected static FormTableManager
Form table manager.protected RightManager
Rights managerFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) static int
getTotalSubmissions
(String formId) Get the total count of submissions for a form.void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_formTableManager
Form table manager. -
_formPropertiesManager
Form properties manager. -
_rightManager
Rights manager
-
-
Constructor Details
-
GetSubmissionAction
public GetSubmissionAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
getTotalSubmissions
Get the total count of submissions for a form.- Parameters:
formId
- the id of the form- Returns:
- the total count of submissions
- Throws:
FormsException
- if an error occurs.
-