com.ibm.commerce.fulfillment.commands
Class UpdateInventoryForOrderItemsCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.fulfillment.commands.InventoryBaseCmdImpl
                    |
                    +--com.ibm.commerce.fulfillment.commands.UpdateInventoryForOrderItemsCmdImpl
All Implemented Interfaces:
CheckInventoryCmd, ECCommand, ReverseUpdateInventoryCmd, TaskCommand, UpdateInventoryCmd, UpdateInventoryForOrderItemsCmd

public class UpdateInventoryForOrderItemsCmdImpl
extends InventoryBaseCmdImpl
implements UpdateInventoryForOrderItemsCmd

Update Inventory for order items.

Calling Command: OrderProcess

Expected Behavior: Reduce the amount of inventory in stock for a list of catalog entries. /p>

If the update inventory fails, it throws ECApplicationException with the message key _API_BAD_INV and the error view of UpdateInventoryForOrderItemsErrorView.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.fulfillment.commands.InventoryBaseCmdImpl
CHECK_INVENTORY, ERR_CHECK_INV, iAction, iCatEntryId, iFulfillmentCenterId, iOrderItems, iQuantity, iQuantityMeasure, iShipModeId, iStoreId, NO_CHECK, NO_RECOMMENDATION, NO_UPDATE, REVERSE_UPDATE_INVENTORY, UPDATE_INVENTORY
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands.UpdateInventoryForOrderItemsCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands.CheckInventoryCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands.UpdateInventoryCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands.ReverseUpdateInventoryCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Constructor Summary
UpdateInventoryForOrderItemsCmdImpl()
           
 
Method Summary
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.fulfillment.commands.InventoryBaseCmdImpl
checkUpdateInventory, convertQuantity, convertQuantity, findByCatalogEntryAndFulfillmentCenterAndStore, flagIsSet, getCatEntryId, getFulfillmentCenterId, getOrderItem, getQuantity, getQuantityMeasure, isReadyToCallExecute, reset, setCatEntryId, setFulfillmentCenterId, setOrderItem, setOrderItem, setOrderItem, setQuantity, setQuantityMeasure, setStoreId
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, 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.fulfillment.commands.UpdateInventoryForOrderItemsCmd
setOrderItem, setOrderItem, setOrderItem
 
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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

UpdateInventoryForOrderItemsCmdImpl

public UpdateInventoryForOrderItemsCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class InventoryBaseCmdImpl
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class InventoryBaseCmdImpl
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -