| java.lang.Object es.udc.mypersonalizer.portal.controller.wizards.WizardEventFactory
WizardEventFactory | public class WizardEventFactory (Code) | | This class creates a WizardEvent containing the data that the user may
input in an html form. It takes the request and the ActionForm which is
supposed to fit the data that has been just input.
It takes from the request the following information besides the actual data:
- The names of the properties that may have been set in the form
- The names of the properties that should not be trimmed (have their
heading and trailing spaces removed).
- The name of the "service identifier" to which this form
corresponds
- The "property identifier" designating the property on which to
work, if necessary
- The "structure name" which corresponds to the input data
- Optionally, the "property updater name" which will define the actions
to execute involving this data
Once this data is get from the request, this class tries to get data for
each of the fields that are defined in the ActionForm that it takes as a
parameter. Then, after trimming (if necessary), the data is put into the
WizardEvent.
author: Daniel Fernandez author: Fernando Bellas since: 1.0 |
createWizardEvent | public static WizardEvent createWizardEvent(HttpServletRequest request, ActionForm form) throws InternalErrorException(Code) | | Creates a WizardEvent from the request and a defined ActionForm trying
to get all the "control parameters" from the request. These commands are:
- serviceIdentifier
- propertyIdentifier
- propertyUpdaterName
- propertyStructureName
- simplePropertyNames
- simplePropertyNamesNotToTrim
a WizardEvent with the input data correctly formatted Parameters: request - the request Parameters: form - the action form which defines the structure ofthe data we should have received throws: InternalErrorException - if any fatal errors occur |
createWizardEvent | public static WizardEvent createWizardEvent(HttpServletRequest request, ActionForm form, Map defaultParameters) throws InternalErrorException(Code) | | Creates a WizardEvent from the request and a defined ActionForm trying
to get some of the "control parameters" from the request. These commands
are:
- serviceIdentifier
- propertyIdentifier
- propertyUpdaterName
- propertyStructureName
- simplePropertyNames
- simplePropertyNamesNotToTrim
If a command comes as an entry in the controlParameters Map, it is
not taken from the request. If not, it is taken.
a WizardEvent with the input data correctly formatted Parameters: request - the request Parameters: form - the action form which defines the structure ofthe data we should have received Parameters: defaultParameters - the Map with the control parameters thatare not going to be taken from the request throws: InternalErrorException - if any fatal errors occur |
|
|