public class GiftRegistryAuthenticationBaseActionForm extends GiftRegistryBaseValidatorActionForm
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
CLASS_NAME
Constructor and Description |
---|
GiftRegistryAuthenticationBaseActionForm() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorViewName()
Gets the error view name
|
java.lang.String |
getExternalId()
Gets the external ID
|
java.lang.String |
getGuestAccessKey()
Gets the guest access key
|
java.lang.String |
getPassword()
Get the gift registry password
|
java.lang.String |
getRegAccessKey()
Gets the registrant access key
|
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 |
getURL()
Gets URL
|
void |
setErrorViewName(java.lang.String string)
Sets the errorViewName view
|
void |
setExternalId(java.lang.String string)
Sets the externalId
|
void |
setGuestAccessKey(java.lang.String string)
Sets the guest access key
|
void |
setPassword(java.lang.String string)
Sets the registry password
|
void |
setRegAccessKey(java.lang.String string)
Sets the registrant access key
|
void |
setURL(java.lang.String string)
Sets the success URL view
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validates the input of the GiftRegistryAuthenticationBaseActionForm.
|
getRulePropertyFileName, getStoreDirectory, getStoreId, setRulePropertyFileName, setStoreDirectory
getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResults
contains, get, get, get, getDynaClass, getMap, getString, getStrings, initialize, initialize, remove, reset, set, set, set, toString
getMultipartRequestHandler, getServletWrapper, setMultipartRequestHandler, setServlet, validate
public static final java.lang.String COPYRIGHT
public GiftRegistryAuthenticationBaseActionForm()
public void setErrorViewName(java.lang.String string)
string
- - the error view namepublic void setURL(java.lang.String string)
string
- - the success URL viewpublic void setGuestAccessKey(java.lang.String string)
guestAccessKey
- - guest access keypublic void setRegAccessKey(java.lang.String string)
regAccessKey
- - registrant access keypublic void setExternalId(java.lang.String string)
string
- - external IDpublic void setPassword(java.lang.String string)
string
- - registry passwordpublic java.lang.String getGuestAccessKey()
public java.lang.String getRegAccessKey()
public java.lang.String getExternalId()
public java.lang.String getPassword()
public java.lang.String getURL()
public java.lang.String getErrorViewName()
public 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 an IBM Gift Center service,
and the service input document, which is instance of BusinessObjectDocument
.getServiceMappingResult
in class GiftRegistryBaseValidatorActionForm
mapping
- the ActionMapping used by this actionmap
- the input data of a request. Each entry in the map is of the form key: Object[]. 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
. Guest access key and registrant access key will be validated.
If both guest access key and registrant access are not available, an error will be returned.validate
in class GiftRegistryBaseValidatorActionForm
mapping
- - action mappingrequest
- - Http servlet request