com.ibm.commerce.price.commands

Class SetCurrencyPrefCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.price.commands.SetCurrencyPrefCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, SetCurrencyPrefCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command
    Direct Known Subclasses:
    ExternalSetCurrencyPrefCmdImpl


    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:

    This command uses the following AccessBeans:
    • OfferAccessBean
    • StoreAccessBean
    • Constructor Summary

      Constructors 
      Constructor and Description
      SetCurrencyPrefCmdImpl()
      SetCurrencyPreferenceCmdImpl constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        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
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
    • Field Detail

      • COPYRIGHT

        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 com.ibm.commerce.exception.ECException
        Execute the command.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
      • reset

        public void reset()
        reset the command.
        Overrides:
        reset in class com.ibm.commerce.command.AbstractECTargetableCommand
      • setCurrency

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

        public void setOrder(com.ibm.commerce.order.objects.OrderAccessBean abOrder)
        Set the order for which currency to be converted.
        Specified by:
        setOrder in interface SetCurrencyPrefCmd
        Parameters:
        abOrder - the order to be converted.
      • validateParameters

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