com.ibm.commerce.order.commands
Class PrepareOrderCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.order.commands.PrepareOrderCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, 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.
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.order.commands. PrepareOrderCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
PrepareOrderCmdImpl()
           
 
Method Summary
protected  void doProcess(OrderProcessingHelper aOrderProcessingUtility)
          Do Processing.
 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. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
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

PrepareOrderCmdImpl

public PrepareOrderCmdImpl()
Method Detail

doProcess

protected void doProcess(OrderProcessingHelper aOrderProcessingUtility)
                  throws ECException,
                         java.rmi.RemoteException,
                         RemoveException,
                         CreateException,
                         FinderException,
                         javax.naming.NamingException
Do Processing.
Parameters:
aOrderProcessingUtility -
Throws:
ECException
java.rmi.RemoteException
CreateException
javax.naming.NamingException
FinderException
RemoveException

getOrders

public java.util.Vector getOrders()
Gets ids of the orders to be prepared.
Returns:
a vector of order access beans.

performExecute

public void performExecute()
                    throws ECException
Contains the actual business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setOrder

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

setOrders

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