Package org.ametys.plugins.forms.actions
Class EditFormEntryAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.forms.actions.AbstractProcessFormAction
org.ametys.plugins.forms.actions.EditFormEntryAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Action to edit the given form entry
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormAdminDashboardHelper
The form admin dashboard helperFields inherited from class org.ametys.plugins.forms.actions.AbstractProcessFormAction
_entryDAO, _foAmetysObjectCreationHelper, _formDAO, _formQuestionDAO, _resolver, _rightManager
Fields 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 TypeMethodDescriptionprotected List<FormQuestion>
_getRuleFilteredQuestions
(Form form, FormQuestionDAO.FormEntryValues entryValues, Optional<Long> currentStepId) Get the list of active question depending of the form rulesact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager smanager) Methods inherited from class org.ametys.plugins.forms.actions.AbstractProcessFormAction
_adaptFormValuesForChoiceList, _getRuleFilteredEntryView, _handleComputedValues
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_formAdminDashboardHelper
The form admin dashboard helper
-
-
Constructor Details
-
EditFormEntryAction
public EditFormEntryAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractProcessFormAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
_getRuleFilteredQuestions
protected List<FormQuestion> _getRuleFilteredQuestions(Form form, FormQuestionDAO.FormEntryValues entryValues, Optional<Long> currentStepId) Description copied from class:AbstractProcessFormAction
Get the list of active question depending of the form rules- Specified by:
_getRuleFilteredQuestions
in classAbstractProcessFormAction
- Parameters:
form
- the formentryValues
- the entry values to compute rulescurrentStepId
- the current step id. Can be empty if the form has no workflow- Returns:
- the list of active question depending of the form rules
-