java.lang.Object | +--AddressBaseCmdImpl | +--com.ibm.commerce.usermanagement.commands.AddressCheckCmdImpl
This command determines whether or not a user or organization has at least one permanent address.
Use this command with SSL (Secure Sockets Layer) to ensure that the information are encrypted. To do so type the command with the HTTPS secure protocol.
The parameters yesURL and noURL are mandatory. The rest of the parameters are all optional.
Behavior
Exception Conditions
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME The name of the class. |
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
protected
boolean |
ibAddressExists Whether a permanent address exists. |
protected
java.lang.String |
istrAddressNoURL The URL to call if no permanent address exists. |
protected
java.lang.String |
istrAddressYesURL The URL to call if one permanent address exists. |
Fields inherited from interface com.ibm.commerce.usermanagement.commands. AddressCheckCmd |
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
AddressCheckCmdImpl() |
Method Summary | |
---|---|
boolean |
getAddressCheck() Returns whether a permanent address exists. |
java.lang.String |
getAddressNoURL() Returns the URL to go to if there is no permanent address. |
java.lang.String |
getAddressYesURL() Returns the URL to go to if there is a permanent address. |
void |
performExecute() Determines whether the specified member identifier has an address associated with it. |
void |
reset() Reset the values in the values in the command. |
void |
setAddressNoURL(java.lang.String astrAddressNoURL) Sets the URL to goto if no permant address can be found for the member. |
void |
setAddressYesURL(java.lang.String astrAddressYesURL) Sets the URL to goto if a permant address can be found for the member. |
void |
setRequestProperties(
TypedProperty reqProperties) Sets the parameters that were passed to the command. |
void |
validateParameters() Validates the parameters passed to the command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.usermanagement.commands. AddressCheckCmd |
setMemberId |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.String istrAddressYesURL
protected java.lang.String istrAddressNoURL
protected boolean ibAddressExists
Constructor Detail |
---|
public AddressCheckCmdImpl()
Method Detail |
---|
public boolean getAddressCheck()
getAddressCheck
in interface
AddressCheckCmd
true
if a permanent address exists, otherwise
false
.public java.lang.String getAddressNoURL()
getAddressNoURL
in interface
AddressCheckCmd
public java.lang.String getAddressYesURL()
getAddressYesURL
in interface
AddressCheckCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
ECException
- if there is a problem with finding the addresses for the specified member or
executing te PostAddressCheck command.public void reset()
reset
in interface
AddressCheckCmd
public void setAddressNoURL(java.lang.String astrAddressNoURL)
setAddressNoURL
in interface
AddressCheckCmd
astrAddressNoURL
- The URL that is called if the member does
not have any address entry.public void setAddressYesURL(java.lang.String astrAddressYesURL)
setAddressYesURL
in interface
AddressCheckCmd
public void setRequestProperties(TypedProperty reqProperties) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
reqProperties
- request properties
ECApplicationException
- if there was an exception from calling the
ProcessRequestProperties and PreAddressCheck command.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
ECException
- if a require parameter is missing or a given parameter has an invalid
value.