com.ibm.commerce.price.commands
Class SetCurrencyPrefCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.price.commands.SetCurrencyPrefCmdImpl
All Implemented Interfaces:
ECCommand, 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.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.price.commands.SetCurrencyPrefCmd
COPYRIGHT, defaultCommandClassName, NAME
 
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.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

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

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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -