com.ibm.commerce.order.commands
Class PrepareOrderCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.order.commands.PrepareOrderCmdImpl
All Implemented Interfaces:
ECCommand, PrepareOrderCmd, TaskCommand
Direct Known Subclasses:
PrepareProcurementOrderCmdImpl

public class PrepareOrderCmdImpl
extends TaskCommandImpl
implements PrepareOrderCmd

This command prepares an order by determining prices, discounts, shipping charges, and taxes for an order.

Behaviour

The command does the following:

  1. Re-calculates shipping charges and taxes, and locks the order.
  2. Does not refresh prices, change the order currency and call ResolveFulfillmentCenter or AllocateInventory commands.


Field Summary
static java.lang.String COPYRIGHT
           
protected static java.lang.String istrCheckParametersFunc
           
protected static java.lang.String istrDoProcessFunc
           
protected static java.lang.String istrIsReadyToCallExecuteFunc
           
protected static java.lang.String istrPerformFunc
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.order.commands.PrepareOrderCmd
defaultCommandClassName, NAME
 
Constructor Summary
PrepareOrderCmdImpl()
           
 
Method Summary
protected  void doProcess(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
           
 java.util.Vector getOrders()
          Gets ids of the orders to be prepared.
 void performExecute()
          Contains the actual business logic of the command.
 void setOrder(OrderAccessBean abOrder)
          Sets the order to prepare.
 void setOrders(java.util.Vector newOrders)
          Sets ids of the orders to be prepared.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
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, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

istrCheckParametersFunc

protected static java.lang.String istrCheckParametersFunc

istrDoProcessFunc

protected static java.lang.String istrDoProcessFunc

istrIsReadyToCallExecuteFunc

protected static java.lang.String istrIsReadyToCallExecuteFunc

istrPerformFunc

protected static java.lang.String istrPerformFunc
Constructor Detail

PrepareOrderCmdImpl

public PrepareOrderCmdImpl()
Method Detail

doProcess

protected void doProcess(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
                  throws ECException,
                         java.rmi.RemoteException,
                         javax.ejb.RemoveException,
                         javax.ejb.CreateException,
                         javax.ejb.FinderException,
                         javax.naming.NamingException

getOrders

public java.util.Vector getOrders()
Gets ids of the orders to be prepared.

performExecute

public void performExecute()
                    throws ECException
Contains the actual business logic of 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.

setOrder

public void setOrder(OrderAccessBean abOrder)
Sets the order to prepare.
Specified by:
setOrder in interface PrepareOrderCmd

setOrders

public void setOrders(java.util.Vector newOrders)
Sets ids of the orders to be prepared.
Specified by:
setOrders in interface PrepareOrderCmd
Parameters:
newOrderId - java.util.Vector order identifiers