com.ibm.commerce.price.commands
Class SetCurrencyPrefCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.price.commands.SetCurrencyPrefCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, SetCurrencyPrefCmd, TaskCommand

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:
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.price.commands. SetCurrencyPrefCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
SetCurrencyPrefCmdImpl()
          SetCurrencyPreferenceCmdImpl constructor.
 
Method Summary
 void performExecute()
          Execute the command.
 void reset()
          reset the command.
 void setCurrency(java.lang.String aCurrency)
          Set the preferred currency.
 void validateParameters()
          Check mandatory parameters.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

SetCurrencyPrefCmdImpl

public SetCurrencyPrefCmdImpl()
SetCurrencyPreferenceCmdImpl constructor.
Method Detail

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
reset the command.
Overrides:
reset in class AbstractECTargetableCommand

setCurrency

public void setCurrency(java.lang.String aCurrency)
Set the preferred currency.
Specified by:
setCurrency in interface SetCurrencyPrefCmd
Parameters:
aCurrency - the preferred currency.

validateParameters

public void validateParameters()
                        throws ECException
Check mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException