public class ExternalOrderCalculateCmdImpl extends PromotionEngineOrderCalculateCmdImpl implements OrderCalculateCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ExternalOrderCalculateCmdImpl()
Constructor for ExternalOrderCalculateCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected OrderType | callCalculateOrderService(OrderType localOrder)
Call the outbound service to calculate the order.
|
com.ibm.commerce.order.facade.server.external.ExternalOrderFacadeClient | getExOrderFacadeClient()
This method returns ExternalOrderFacadeClient
|
protected OrderAccessBean[] | getOrders()
This method returns the orders specified to be processed by this command.
|
java.util.Hashtable | getOrdersMap()
This method returns the map of the orders.
|
void | performExecute()
Executes the main business logic of the command implementation.
|
void | reset()
This method resets instance variables to their initial values.
|
void | setExOrderFacadeClient(com.ibm.commerce.order.facade.server.external.ExternalOrderFacadeClient exOrderFacadeClient)
This method sets the ExternalOrderFacadeClient
|
void | setOrders(OrderAccessBean[] aabOrders)
This method sets the order specified to be processed by this command.
|
void | setOrdersMap(java.util.Hashtable hshOrders)
This method sets the map of the orders Sets the ihshOrders.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties of this command.
|
protected void | setResponseProperties()
This method sets the response properties of this command:
For each name that was specified by the outOrderName request property, add a response property with that name.
|
protected void | updateCalculationInfo(OrderType localOrder, OrderType externalOrder)
This method synchronizes the order's calculation info from backend system into database.
|
protected void | updateCalculationOrderInfo(OrderType localOrder, OrderType externalOrder, OrderAccessBean abOrder)
This method synchronizes the order's calculation info from backend system into database.
|
protected void | updateCalculationOrderItemInfo(OrderType localOrder, OrderType externalOrder, OrderAccessBean abOrder)
This method synchronizes the order item's calculation info from backend system into database.
|
protected void | validateCalcualteInfo(OrderType requestOrder, OrderType responseOrder)
This method validates the backend returned externalOrder based on localOrder.
|
void | validateParameters()
This method resolves the orders to be processed from the request.
|
public static final java.lang.String COPYRIGHT
public ExternalOrderCalculateCmdImpl()
public void performExecute() throws ECException
protected OrderType callCalculateOrderService(OrderType localOrder) throws ECException
protected void updateCalculationInfo(OrderType localOrder, OrderType externalOrder) throws ECException
protected void updateCalculationOrderItemInfo(OrderType localOrder, OrderType externalOrder, OrderAccessBean abOrder) throws ECException
protected void updateCalculationOrderInfo(OrderType localOrder, OrderType externalOrder, OrderAccessBean abOrder) throws ECException
public void setOrders(OrderAccessBean[] aabOrders)
protected OrderAccessBean[] getOrders()
public java.util.Hashtable getOrdersMap()
public void setOrdersMap(java.util.Hashtable hshOrders)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
protected void setResponseProperties() throws ECException
public void reset()
public void validateParameters() throws ECException
protected void validateCalcualteInfo(OrderType requestOrder, OrderType responseOrder) throws ECException
public com.ibm.commerce.order.facade.server.external.ExternalOrderFacadeClient getExOrderFacadeClient()
public void setExOrderFacadeClient(com.ibm.commerce.order.facade.server.external.ExternalOrderFacadeClient exOrderFacadeClient)