public class SalesOrderPreprocessCmdImpl extends ControllerCommandImpl implements SalesOrderPreprocessCmd
Name | Description |
---|---|
orderId | the order ID |
customerId | the customer ID |
... | Other order related information |
Name | Description |
---|---|
orderId | the order ID |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright string.
|
Constructor and Description |
---|
SalesOrderPreprocessCmdImpl()
SalesOrderPreprocessCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | callAddressAdd()
Calls AddressAddCmd to add the new shipping addresses.
|
protected void | callAdminOrderItemUpdate()
Calls AdminOrderItemUpdateCmd to add a new order, or update an existing order.
|
protected void | callOrderCalculate()
Calls OrderCalculateCmd to add eligible free gifts to the order.
|
protected void | callOrderPrepare()
Calls OrderPrepareCmd to prepare the order.
|
protected void | callPromotionCodeAddRemove()
Calls PromotionCodeAddRemoveControllerCmd to remove the existing promotion codes and add the new promotion codes specified.
|
protected void | callServiceAdjustShippingCharges()
Calls ServiceAdjustShippingChargesCmd to add service adjustments to the order.
|
protected void | callShipInfoUpdate()
Calls ShipInfoUpdateCmd to set the shipping charge policies of the shipping modes.
|
protected void | clearCaches()
Clears the order item cache and the transaction cache.
|
protected void | deleteOldServiceAdjustments()
Delete old service adjustments from the order.
|
protected void | deleteTempAddresses()
Deletes the temporary addresses by marking them as temporary.
|
protected TypedProperty | flatten(java.util.Map amapTypedProperties)
Flattens a map of typed properties into a single typed property.
|
java.lang.Long | getCustomerId()
Returns the customer ID.
|
java.lang.Long | getOrderId()
Returns the order ID.
|
protected java.util.Map | parse(java.lang.String[] astrParameters)
Parses a list of enumerated parameters into a map of typed properties.
|
void | performExecute()
Performs the main business logic of this command.
|
void | reset()
Resets this command implementation instance.
|
protected void | setCustomerId(java.lang.Long anCustomerId)
Sets the customer ID.
|
protected void | setOrderId(java.lang.Long anOrderId)
Sets the order ID.
|
void | setRequestProperties(TypedProperty reqProperties)
Sets the request properties.
|
protected void | setResponseProperties()
Sets the response properties.
|
protected void | setStatus(java.lang.String astrStatus)
Sets the order and order item statuses.
|
protected void | setTransferStatus(java.lang.Short anTransferStatus)
Sets the transfer status of the order.
|
protected TypedProperty | toTypedProperty(AddressAccessBean aabAddress)
Converts an AddressAccessBean to a typed property.
|
void | validateParameters()
Validates the input parameters.
|
public static final java.lang.String COPYRIGHT
public SalesOrderPreprocessCmdImpl()
public void reset()
public void setRequestProperties(TypedProperty reqProperties) throws ECException
protected java.util.Map parse(java.lang.String[] astrParameters)
protected TypedProperty flatten(java.util.Map amapTypedProperties)
protected void setCustomerId(java.lang.Long anCustomerId)
public java.lang.Long getCustomerId()
protected void setOrderId(java.lang.Long anOrderId)
public java.lang.Long getOrderId()
protected TypedProperty toTypedProperty(AddressAccessBean aabAddress) throws ECException
protected void callAddressAdd() throws ECException
protected void clearCaches() throws ECException
protected void callAdminOrderItemUpdate() throws ECException
protected void callPromotionCodeAddRemove() throws ECException
protected void callShipInfoUpdate() throws ECException
protected void deleteOldServiceAdjustments() throws ECException
protected void callServiceAdjustShippingCharges() throws ECException
protected void callOrderCalculate() throws ECException
protected void callOrderPrepare() throws ECException
protected void setStatus(java.lang.String astrStatus) throws ECException
protected void setTransferStatus(java.lang.Short anTransferStatus) throws ECException
protected void deleteTempAddresses() throws ECException
protected void setResponseProperties()
public void performExecute() throws ECException
public void validateParameters() throws ECException