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:
OfferAccessBean
StoreAccessBean
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, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public SetCurrencyPrefCmdImpl()
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
public void reset()
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void setCurrency(java.lang.String aCurrency)
setCurrency
in interface SetCurrencyPrefCmd
aCurrency
- the preferred currency.public void setOrder(com.ibm.commerce.order.objects.OrderAccessBean abOrder)
setOrder
in interface SetCurrencyPrefCmd
abOrder
- the order to be converted.public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException