public class GiftRegistryBaseValidatorActionForm
extends org.apache.struts.validator.DynaValidatorForm
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME
The name of this class
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
| Constructor and Description |
|---|
GiftRegistryBaseValidatorActionForm() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRulePropertyFileName() |
MappingResult |
getServiceMappingResult(org.apache.struts.action.ActionMapping mapping,
java.util.Map inMap,
javax.servlet.http.HttpServletRequest request)
Returns a
MappingResult object that is corresponding to the given
name value pairs. |
java.lang.String |
getStoreDirectory() |
java.lang.Integer |
getStoreId(javax.servlet.http.HttpServletRequest request)
Retrieves the ID of the store in which the current request this action is handling
|
void |
setRulePropertyFileName(java.lang.String fileName)
Sets the file name that is going to be used.
|
void |
setStoreDirectory(java.lang.String directory)
Sets the store directory where the rule property file should be located.
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validates parameter values in http request.
|
getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResultscontains, get, get, get, getDynaClass, getMap, getString, getStrings, initialize, initialize, remove, reset, set, set, set, toStringgetMultipartRequestHandler, getServletWrapper, setMultipartRequestHandler, setServlet, validatepublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public final java.lang.Integer getStoreId(javax.servlet.http.HttpServletRequest request)
request - the request this action is handlingpublic MappingResult getServiceMappingResult(org.apache.struts.action.ActionMapping mapping, java.util.Map inMap, javax.servlet.http.HttpServletRequest request) throws ECException
MappingResult object that is corresponding to the given
name value pairs. The MappingResult will contain the name of a GC1 service,
and the service input document, which is instance of BusinessObjectDocument.mapping - the ActionMapping used by this actionmap - the input data of a request. Each entry in the map is of the form key: sObject[]. For example, if
a name-value pair in a request query is lastName = Smith, then the corresponding entry in the inMap is lastName->[Smith].
If the query is orderItemId=1&orderItemId=2&orderItemId=3, then the query is orderItemId: [1, 2, 3]request - the request object that represents the current request for which this action is calledMappingResult will be returned.ECException - if the conversion from the map to the BOD failspublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
ActionErrors.validate in class org.apache.struts.validator.DynaValidatorFormmapping - the mapping for the action and the formrequest - the HTTP request to be validatedpublic final void setRulePropertyFileName(java.lang.String fileName)
setStoreDirectory(String). A typical usage in the subclass
would be:
setRulePropertyFileName(fileName);
super.validate();
fileName - the name of the property filepublic final java.lang.String getRulePropertyFileName()
public final void setStoreDirectory(java.lang.String directory)
directory - the directory to be setpublic final java.lang.String getStoreDirectory()