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
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe current user providerprotected FormAdminDashboardHelperThe form admin dashboard helperFields inherited from class org.ametys.plugins.forms.actions.AbstractProcessFormAction
_entryDAO, _foAmetysObjectCreationHelper, _formDAO, _formQuestionDAO, _resolver, _rightManagerFields 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 TypeMethodDescriptionprotected List<FormQuestion>_getRuleFilteredQuestions(Request request, 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) voidservice(ServiceManager smanager) Methods inherited from class org.ametys.plugins.forms.actions.AbstractProcessFormAction
_adaptFormValuesForChoiceList, _getRuleFilteredEntryView, _handleComputedValuesMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_formAdminDashboardHelper
The form admin dashboard helper -
_currentUserProvider
The current user provider
-
-
Constructor Details
-
EditFormEntryAction
public EditFormEntryAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein 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(Request request, Form form, FormQuestionDAO.FormEntryValues entryValues, Optional<Long> currentStepId) Description copied from class:AbstractProcessFormActionGet the list of active question depending of the form rules- Specified by:
_getRuleFilteredQuestionsin classAbstractProcessFormAction- Parameters:
request- the requestform- 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
-