public class SetCurrencyPrefCmdImpl extends TaskCommandImpl implements SetCurrencyPrefCmd
For each pending order of the shopper, the order item prices are re-calculated based upon the new shopping currency.
This command calls the following TaskCommands:
This command uses the following AccessBeans:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
SetCurrencyPrefCmdImpl()
SetCurrencyPreferenceCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | calculateOrder(com.ibm.commerce.order.commands.OrderProcessingHelper orderProcessingHelper)
This method is to get order calculation information.
|
protected OrderAccessBean | getOrder()
This method gets the order for which currency to be converted
|
void | performExecute()
Execute the command.
|
void | reset()
reset the command.
|
void | setCurrency(java.lang.String aCurrency)
Set the preferred currency.
|
void | setOrder(OrderAccessBean abOrder)
Set the order for which currency to be converted.
|
protected void | updatePrice(com.ibm.commerce.order.commands.OrderProcessingHelper orderProcessingHelper, java.lang.String negotiatedCurrency)
This method updates the order items prices.
|
void | validateParameters()
Check mandatory parameters.
|
public static final java.lang.String COPYRIGHT
public SetCurrencyPrefCmdImpl()
public void performExecute() throws ECException
protected void updatePrice(com.ibm.commerce.order.commands.OrderProcessingHelper orderProcessingHelper, java.lang.String negotiatedCurrency) throws ECException
protected void calculateOrder(com.ibm.commerce.order.commands.OrderProcessingHelper orderProcessingHelper) throws ECException
public void reset()
public void setCurrency(java.lang.String aCurrency)
public void setOrder(OrderAccessBean abOrder)
protected OrderAccessBean getOrder()
public void validateParameters() throws ECException