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
FieldsModifier and TypeFieldDescriptionprotected FormPropertiesManagerForm properties manager.protected static FormTableManagerForm table manager.protected RightManagerRights managerFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) static intgetTotalSubmissions(String formId) Get the total count of submissions for a form.voidservice(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:
 servicein interfaceServiceable- Overrides:
 servicein 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.
 
 -