public class UpdateShippingAddressCmdImpl extends TaskCommandImpl implements UpdateShippingAddressCmd
UpdateShippingAddressCmd
interface.
For each order item in the list, the command does the following:
validateShippingAddress()
to validate shipping address.updateShippingAddress()
to update the shipping address.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
UpdateShippingAddressCmdImpl()
The default constructor of ValidateOrderAddressCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long[] |
getAddressIds()
Gets AddressIds which is used to update shipping addresses of order items.
|
java.util.Vector |
getOrderItems()
Gets order items, the shipping Addresses of which will be updated.
|
boolean |
isDefaultAddressUsed()
Gets Sets if it sets the shipping address using the default shipping address for registered user if no other appropriate address is found.
|
boolean |
isValidateRequired()
Gets if shipping address validating is required.
|
void |
performExecute()
Executes the main business logic of the command.
|
void |
reset()
Resets all fields.
|
void |
setAddressIds(java.lang.Long[] anAddressIds)
Sets AddressIds which is used to update shipping addresses of order items.
|
void |
setDefaultAddressUsed(boolean aDefaultAddressUsed)
Sets if it sets the shipping address using the default shipping address for registered user.
|
void |
setOrderItems(java.util.Vector anOrderItemABs)
Sets order items, the shipping Addresses of which will be updated, this is a required parameter.
|
void |
setValidateRequired(boolean aValidateRequired)
Sets the value indicating if shipping address validating is required, the default value is false.
|
void |
validateParameters()
Verify if the required parameters is set
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public UpdateShippingAddressCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException,
- raised when the required parameter is null.ECException
public void setAddressIds(java.lang.Long[] anAddressIds)
setAddressIds
in interface UpdateShippingAddressCmd
anAddressIds
- public java.lang.Long[] getAddressIds()
getAddressIds
in interface UpdateShippingAddressCmd
public void setOrderItems(java.util.Vector anOrderItemABs)
setOrderItems
in interface UpdateShippingAddressCmd
anOrderItemABs
- OrderItemAccessBeanspublic java.util.Vector getOrderItems()
getOrderItems
in interface UpdateShippingAddressCmd
public void setValidateRequired(boolean aValidateRequired)
setValidateRequired
in interface UpdateShippingAddressCmd
aValidateRequired
- public boolean isValidateRequired()
isValidateRequired
in interface UpdateShippingAddressCmd
public void setDefaultAddressUsed(boolean aDefaultAddressUsed)
setDefaultAddressUsed
in interface UpdateShippingAddressCmd
aDefaultAddressUsed
- public boolean isDefaultAddressUsed()
isDefaultAddressUsed
in interface UpdateShippingAddressCmd
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand