Package org.ametys.plugins.forms.actions
Class GetFormEntriesAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.forms.actions.GetFormEntriesAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Get the submitted entries of a form
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormEntryDAO
The form entry DAOprotected LimitedEntriesHelper
The handle limited entries helperprotected I18nUtils
The I18n utilsprotected JSONUtils
The json utilsprotected AmetysObjectResolver
The ametys object resolver.protected UserHelper
The user helperprotected UserManager
The user managerprotected WorkflowProvider
The workflow providerstatic final String
The id of the column for entry active or notstatic final String
The id of the column for entry statusstatic final String
Constant for whether an entry is in a queue or notFields 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 TypeMethodDescription_getEntries
(Form form, List<FormEntryDAO.Sort> sorts) Get entries and sort_getMatrixInfos
(Form form) Get informations of matrix questionsprotected List<FormEntryDAO.Sort>
Get sorts of search form entryact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
FORM_ENTRY_STATUS_ID
The id of the column for entry status- See Also:
-
QUEUE_STATUS
Constant for whether an entry is in a queue or not- See Also:
-
FORM_ENTRY_ACTIVE
The id of the column for entry active or not- See Also:
-
_resolver
The ametys object resolver. -
_formEntryDAO
The form entry DAO -
_handleLimitedEntriesHelper
The handle limited entries helper -
_userHelper
The user helper -
_userManager
The user manager -
_workflowProvider
The workflow provider -
_jsonUtils
The json utils -
_i18nUtils
The I18n utils
-
-
Constructor Details
-
GetFormEntriesAction
public GetFormEntriesAction()
-
-
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
-
_getEntries
Get entries and sort- Parameters:
form
- the formsorts
- the sorts- Returns:
- the list of entries
-
_getSorts
Get sorts of search form entry- Parameters:
formId
- the form idsortString
- the sort as stringgroupString
- the group as string- Returns:
- the list of sort
-
_getMatrixInfos
Get informations of matrix questions- Parameters:
form
- the form- Returns:
- the map of informations
-