public class SetCurrencyPrefCmdImpl extends com.ibm.commerce.command.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:
OfferAccessBeanStoreAccessBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
SetCurrencyPrefCmdImpl()
SetCurrencyPreferenceCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
performExecute()
Execute the command.
|
void |
reset()
reset the command.
|
void |
setCurrency(java.lang.String aCurrency)
Set the preferred currency.
|
void |
setOrder(com.ibm.commerce.order.objects.OrderAccessBean abOrder)
Set the order for which currency to be converted.
|
void |
validateParameters()
Check mandatory parameters.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public SetCurrencyPrefCmdImpl()
public void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionpublic void reset()
reset in class com.ibm.commerce.command.AbstractECTargetableCommandpublic void setCurrency(java.lang.String aCurrency)
setCurrency in interface SetCurrencyPrefCmdaCurrency - the preferred currency.public void setOrder(com.ibm.commerce.order.objects.OrderAccessBean abOrder)
setOrder in interface SetCurrencyPrefCmdabOrder - the order to be converted.public void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException