com.ibm.commerce.price.commands
Class ApplyOrderAdjustmentsCmdImpl

java.lang.Object
  |
  +--ApplyCalculationUsagesCmdImpl
        |
        +--com.ibm.commerce.price.commands.ApplyOrderAdjustmentsCmdImpl
All Implemented Interfaces:
ApplyOrderAdjustmentsCmd, TaskCommand

public class ApplyOrderAdjustmentsCmdImpl
extends ApplyCalculationUsagesCmdImpl
implements ApplyOrderAdjustmentsCmd

Apply order adjustments against an order. First all existing order adjustments (with a calculation usage of Discount) are deleted. Then all calculation codes with a calculation usage of Discount are used to create new order adjustments. However, no orderItem adjustments for "priceOverride" orderItems are created.

This command calls the following TaskCommands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ibm.commerce.price.commands. ApplyOrderAdjustmentsCmd
COPYRIGHT, NAME
 
Constructor Summary
ApplyOrderAdjustmentsCmdImpl()
          ApplyOrderAdjustmentsCmdImpl constructor.
 
Method Summary
protected  void init()
          init method comment.
 void setOrderItems( OrderItemAccessBean[] orderItems)
          Set the order items to process for discounts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.price.commands. ApplyOrderAdjustmentsCmd
setOrderCurrency, setOrderItems
 

Constructor Detail

ApplyOrderAdjustmentsCmdImpl

public ApplyOrderAdjustmentsCmdImpl()
ApplyOrderAdjustmentsCmdImpl constructor.
Method Detail

init

protected void init()
             throws ECException
init method comment.
Throws:
ECException

setOrderItems

public void setOrderItems(OrderItemAccessBean[] orderItems)
                   throws ECSystemException
Set the order items to process for discounts. Only order items that have not been overridden are processed for discounts. An order item with the priceOverride flag set is ignored. All order items also have their total adjustment field set to zero regardless of the state of the priceOverride flag.
Specified by:
setOrderItems in interface ApplyOrderAdjustmentsCmd
Parameters:
orderItems - an array of order item access beans.
Throws:
ECSystemException