java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityBECmdImpl
Checks that either there is sufficient existing inventory for a list of items from a backend. The backend can return schedule line items.
Behaviour
The input item(s) are updated or split with availble quantity, estimatedAvailabilityTime and shippingOffset information.
If the available inventory is not sufficient, then throws an exception.
Field Summary | |
static java.lang.String | COPYRIGHT IBM Copyright notice |
static java.lang.String | ERR_CHECK_INV The ERR_CHECK_INV value. |
static java.lang.Integer | iStoreId The storeId on whose behalf we are searching. |
protected static java.lang.String | istrPerformFunc The performExecute() method name. |
protected static java.lang.String | istrThisClass The name of this class. |
static java.lang.String | PARTNUMBER The PARTNUMBER string. |
static java.lang.String | QUANTITY The QUANTITY string. |
static java.lang.String | STOREID The STOREID string. |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CheckInventoryAvailabilityBECmdImpl() |
Method Summary | |
Item | getCatEntry() Gets an item to check inventory for. |
java.util.Vector | getCatEntryFulfillmentCenters() Gets a list of fulfillment centers for an item specified by setCatEntry method. |
java.util.Hashtable | getOrderItemFulfillmentCentersMaps() Gets the map storing lists of fulfillment centers to check for order items. |
java.util.Enumeration | getOrderItems() Gets items to check for in inventory. |
java.lang.String | getUnitOfMeasure() Gets the unit of measure to check inventory for an item specified by setCatEntry method. |
void | performExecute() Contains the actual business logic of the command. |
void | reset() This method should be called after a command has been executed to reset its states variables. |
void | setCatEntry(Item newCatEntry) Sets an item to check in the inventory. |
void | setCatEntryFulfillmentCenters(java.util.Vector avCatEntryFulfillmentCenters) Sets a list of fulfillment centers to check for the item specified by the setCatEntry method. |
void | setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps) Sets lists of fulfillment centers to check inventory for items specified by the setOrderItems method. |
void | setOrderItems(java.util.Enumeration newOrderItems) Sets items to check inventory. |
void | setStoreId(java.lang.Integer newStoreId) Sets a store id to check the inventory. |
void | setUnitOfMeasure(java.lang.String astrUnitOfMeasure) Sets the unit of measure to check inventory for an item specified by setCatEntry method. |
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, 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
protected static java.lang.String istrThisClass
protected static java.lang.String istrPerformFunc
public static final java.lang.String ERR_CHECK_INV
public static java.lang.Integer iStoreId
public static final java.lang.String PARTNUMBER
public static final java.lang.String QUANTITY
public static final java.lang.String STOREID
Constructor Detail |
public CheckInventoryAvailabilityBECmdImpl()
Method Detail |
public Item getCatEntry()
public java.util.Vector getCatEntryFulfillmentCenters()
public java.util.Hashtable getOrderItemFulfillmentCentersMaps()
public java.util.Enumeration getOrderItems()
public java.lang.String getUnitOfMeasure()
public void performExecute() throws ECException
public void reset()
public void setCatEntry(Item newCatEntry)
public void setCatEntryFulfillmentCenters(java.util.Vector avCatEntryFulfillmentCenters)
public void setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps)
public void setOrderItems(java.util.Enumeration newOrderItems)
public void setStoreId(java.lang.Integer newStoreId)
public void setUnitOfMeasure(java.lang.String astrUnitOfMeasure)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.