|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityCmdImpl
Checks that either there is sufficient existing inventory for a list of items, or that they could be backordered.
Behaviour
The input item(s) are updated with estimatedAvailabilityTime and shippingOffset information.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ERR_CHECK_INV
|
protected static java.lang.String |
istrPerformFunc
|
protected static java.lang.String |
istrThisClass
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CheckInventoryAvailabilityCmdImpl()
|
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 lists of fulfillment centers to check inventory for items specified by the setOrderItems method. |
java.util.Enumeration |
getOrderItems()
Gets items to check 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 the inventory. |
void |
setCatEntryFulfillmentCenters(java.util.Vector avCatEntryFulfillmentCenters)
Sets a list of fulfillment centers for an item specified by 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)
Set 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.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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 |
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERR_CHECK_INV
protected static java.lang.String istrPerformFunc
protected static java.lang.String istrThisClass
Constructor Detail |
public CheckInventoryAvailabilityCmdImpl()
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
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
reset
in class AbstractECCommand
public void setCatEntry(Item newCatEntry)
setCatEntry
in interface CheckInventoryAvailabilityCmd
aCatEntry
- Item representing the catalog entry and quantity to check inventory.public void setCatEntryFulfillmentCenters(java.util.Vector avCatEntryFulfillmentCenters)
setCatEntryFulfillmentCenters
in interface CheckInventoryAvailabilityCmd
avCatEntryFulfillmentCenters
- list of fulfillment centers.public void setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps)
setOrderItemFulfillmentCentersMaps
in interface CheckInventoryAvailabilityCmd
ahsOrderItemFulfillmentCentersMaps
- lists of fulfillment centers keyed by the order item idpublic void setOrderItems(java.util.Enumeration newOrderItems)
setOrderItems
in interface CheckInventoryAvailabilityCmd
aenOrderItems
- items to check inventorypublic void setStoreId(java.lang.Integer newStoreId)
setStoreId
in interface CheckInventoryAvailabilityCmd
public void setUnitOfMeasure(java.lang.String astrUnitOfMeasure)
setUnitOfMeasure
in interface CheckInventoryAvailabilityCmd
astrUnitOfMeasure
- unit of measure.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |