public class UpdateShippingAddressCmdImpl extends TaskCommandImpl implements UpdateShippingAddressCmd
For each order item in the list, the command does the following:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
UpdateShippingAddressCmdImpl()
The default constructor of ValidateOrderAddressCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Long | findAddressIdForOrderItem(int i)
Find the appropriate shipping address for the order item.
|
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.
|
protected void | updateShippingAddress(int i)
Update shipping address.
|
void | validateParameters()
Verify if the required parameters is set
|
protected void | validateShippingAddress(int i)
Invoke validateOrderAddressCmd to validate shipping address.
|
public static final java.lang.String COPYRIGHT
public UpdateShippingAddressCmdImpl()
public void performExecute() throws ECException
protected void updateShippingAddress(int i) throws ECException
protected void validateShippingAddress(int i) throws ECException
public void validateParameters() throws ECException
public void setAddressIds(java.lang.Long[] anAddressIds)
public java.lang.Long[] getAddressIds()
public void setOrderItems(java.util.Vector anOrderItemABs)
public java.util.Vector getOrderItems()
public void setValidateRequired(boolean aValidateRequired)
public boolean isValidateRequired()
public void setDefaultAddressUsed(boolean aDefaultAddressUsed)
public boolean isDefaultAddressUsed()
protected java.lang.Long findAddressIdForOrderItem(int i) throws ECException
public void reset()