Package org.ametys.plugins.forms.data
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.data.GetFormEntriesAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetFormEntriesAction extends ServiceableAction
Get the submitted entries of a form
-
-
Field Summary
Fields Modifier and Type Field Description protected static I18nizableText
__MESSAGE_NO_STEP
The internationalizable text symbolizing the absence of workflow stepprotected static Pattern
__OPTION_VALUE_PATTERN
Pattern for options valueprotected FormPropertiesManager
_formPropertiesManager
The form properties manager.protected FormTableManager
_formTableManager
The form data manager.protected I18nUtils
_i18nUtils
Utility component for internationalizable textprotected AmetysObjectResolver
_resolver
The ametys object resolver.protected WorkflowProvider
_workflowProvider
The workflow provider-
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 GetFormEntriesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Object>
_entry2json(UserEntry entry, com.opensymphony.workflow.Workflow workflow)
protected String
_getReadableValue(Field field, Object value)
Get label to display for fieldprivate Map<String,Object>
_workflow2json(UserEntry entry, com.opensymphony.workflow.Workflow workflow)
Map
act(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 Detail
-
__OPTION_VALUE_PATTERN
protected static final Pattern __OPTION_VALUE_PATTERN
Pattern for options value
-
__MESSAGE_NO_STEP
protected static final I18nizableText __MESSAGE_NO_STEP
The internationalizable text symbolizing the absence of workflow step
-
_formPropertiesManager
protected FormPropertiesManager _formPropertiesManager
The form properties manager.
-
_formTableManager
protected FormTableManager _formTableManager
The form data manager.
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver.
-
_workflowProvider
protected WorkflowProvider _workflowProvider
The workflow provider
-
_i18nUtils
protected I18nUtils _i18nUtils
Utility component for internationalizable text
-
-
Constructor Detail
-
GetFormEntriesAction
public GetFormEntriesAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
-
_entry2json
private Map<String,Object> _entry2json(UserEntry entry, com.opensymphony.workflow.Workflow workflow)
-
_workflow2json
private Map<String,Object> _workflow2json(UserEntry entry, com.opensymphony.workflow.Workflow workflow)
-
_getReadableValue
protected String _getReadableValue(Field field, Object value)
Get label to display for field- Parameters:
field
- The fieldvalue
- The value- Returns:
- The value to display
-
-