com.ibm.commerce.usermanagement.commands
Class AddressCheckCmdImpl
com.ibm.commerce.usermanagement.commands.AddressCheckCmdImpl
- All Implemented Interfaces:
- AccCommand, AddressCheckCmd, ControllerCommand, ECCommand, Protectable
- public class AddressCheckCmdImpl
- implements AddressCheckCmd
The implementation for the AddressCheck command which determines whether or not a permanent address
book entry exists for the member.
Method Summary |
boolean |
getAddressCheck()
Gets the boolean result indicating whether the member has any address entry. |
java.lang.String |
getAddressNoURL()
Gets the URL that is called if the member does not have any address entry. |
java.lang.String |
getAddressYesURL()
Gets the URL that is called if the member has at least one address entry. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
reset()
Reset all instance variables of the command to initial state so it can be used again. |
void |
setAddressNoURL(java.lang.String astrAddressNoURL)
Sets the URL that is called if the member does not have any address entry. |
void |
setAddressYesURL(java.lang.String astrAddressYesURL)
Sets the URL that is called if the member has at least one address entry. |
void |
setRequestProperties(TypedProperty reqProperties)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
ibAddressExists
protected boolean ibAddressExists
istrAddressNoURL
protected java.lang.String istrAddressNoURL
istrAddressYesURL
protected java.lang.String istrAddressYesURL
AddressCheckCmdImpl
public AddressCheckCmdImpl()
getAddressCheck
public boolean getAddressCheck()
- Description copied from interface:
AddressCheckCmd
- Gets the boolean result indicating whether the member has any address entry.
- Specified by:
getAddressCheck
in interface AddressCheckCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.AddressCheckCmd
- Returns:
- The boolean result indicating whether the member has any address entry
- true - the member has at least one address entry
- false - the member does not have andy address entry
getAddressNoURL
public java.lang.String getAddressNoURL()
- Description copied from interface:
AddressCheckCmd
- Gets the URL that is called if the member does not have any address entry.
- Specified by:
getAddressNoURL
in interface AddressCheckCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.AddressCheckCmd
- Returns:
- The URL that is called if the member does not have any address entry
getAddressYesURL
public java.lang.String getAddressYesURL()
- Description copied from interface:
AddressCheckCmd
- Gets the URL that is called if the member has at least one address entry.
- Specified by:
getAddressYesURL
in interface AddressCheckCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.AddressCheckCmd
- Returns:
- The URL that is called if the member has at least one address entry
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Description copied from interface:
AddressCheckCmd
- Reset all instance variables of the command to initial state so it can be used again.
- Specified by:
reset
in interface AddressCheckCmd
setAddressNoURL
public void setAddressNoURL(java.lang.String astrAddressNoURL)
- Description copied from interface:
AddressCheckCmd
- Sets the URL that is called if the member does not have any address entry.
- Specified by:
setAddressNoURL
in interface AddressCheckCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.AddressCheckCmd
- Parameters:
astrAddressNoURL
- The URL that is called if the member does not have any address entry
setAddressYesURL
public void setAddressYesURL(java.lang.String astrAddressYesURL)
- Description copied from interface:
AddressCheckCmd
- Sets the URL that is called if the member has at least one address entry.
- Specified by:
setAddressYesURL
in interface AddressCheckCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.AddressCheckCmd
- Parameters:
astrAddressNoURL
- The URL that is called if the member has at least one address entry
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECApplicationException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-