Package org.ametys.plugins.forms.actions
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.actions.GetSubmissionAction
-
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,Action
public class GetSubmissionAction extends ServiceableAction
Get the number of submissions for one calendar for a form
-
-
Field Summary
Fields Modifier and Type Field Description protected FormPropertiesManager_formPropertiesManagerForm properties manager.protected static FormTableManager_formTableManagerForm table manager.protected RightManager_rightManagerRights manager-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetSubmissionAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapact(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 Detail
-
_formTableManager
protected static FormTableManager _formTableManager
Form table manager.
-
_formPropertiesManager
protected FormPropertiesManager _formPropertiesManager
Form properties manager.
-
_rightManager
protected RightManager _rightManager
Rights manager
-
-
Constructor Detail
-
GetSubmissionAction
public GetSubmissionAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
public static int getTotalSubmissions(String formId) throws FormsException
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.
-
-