java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityCmdImpl
The default implementation of the
CheckInventoryAvailability
task command interface.
Refer to the
performExecute
method for a description of its behaviour.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
ERR_CHECK_INV The value set for the "errorCode" name value pair set in the ECApplicationException thrown when an item is not available. |
protected
static java.lang.String |
istrPerformFunc Deprecated. Will be changed to private. |
protected
static java.lang.String |
istrThisClass Deprecated. Will be changed to private. |
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 | |
---|---|
CheckInventoryAvailabilityCmdImpl() |
Method Summary | |
---|---|
Item |
getCatEntry() Deprecated. This method will be changed to protected. |
java.util.Vector |
getCatEntryFulfillmentCenters() Deprecated. This method will be changed to protected. |
java.util.Hashtable |
getOrderItemFulfillmentCentersMaps() Deprecated. This method will be changed to protected. |
java.util.Enumeration |
getOrderItems() Deprecated. This method will be changed to protected. |
java.lang.String |
getUnitOfMeasure() Deprecated. This method will be changed to protected. |
void |
performExecute() Performs the actual business logic of the command. |
void |
reset() This method should be called after a command has been executed to reset its instance variables. |
void |
setCatEntry(
Item aCatEntry) Sets the item to be checked. |
void |
setCatEntryFulfillmentCenters(java.util.Vector avCatEntryFulfillmentCenters) Sets the list of fulfillment center identifiers for the 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 aenOrderItems) Sets the items to be checked. |
void |
setStoreId(java.lang.Integer aStoreId) Deprecated. This method has no effect. |
void |
setUnitOfMeasure(java.lang.String astrUnitOfMeasure) Sets the unit of measure for the quantity of the Item specified by the 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
Constructor Detail |
---|
public CheckInventoryAvailabilityCmdImpl()
Method Detail |
---|
public java.util.Enumeration getOrderItems()
OrderItemAccessBean
).public java.util.Hashtable getOrderItemFulfillmentCentersMaps()
OrderItemAccessBean
) The order item.public Item getCatEntry()
public java.util.Vector getCatEntryFulfillmentCenters()
public java.lang.String getUnitOfMeasure()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECSystemException
- a system error occurred.
ECApplicationException
- availability times cannot be determined for
one or more items. The message is set to ECMessage._API_BAD_INV, the error task
name is set to CheckInventoryCmd.ERRTASK_NAME, and the following name value
pairs are set in the TypedProperty exception data:
public void reset()
reset
in class
AbstractECTargetableCommand
public void setOrderItems(java.util.Enumeration aenOrderItems)
setOrderItems
in interface
CheckInventoryAvailabilityCmd
aenOrderItems
- the items to be checked (Enumeration of
OrderItemAccessBean
).public void setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps)
setOrderItemFulfillmentCentersMaps
in interface
CheckInventoryAvailabilityCmd
newOrderItemFulfillmentCentersMaps
- lists of fulfillment
centers keyed by the order item id. Hashtable:
OrderItemAccessBean
) The order
item.public void setStoreId(java.lang.Integer aStoreId)
setStoreId
in interface
CheckInventoryAvailabilityCmd
aStoreId
- the Store identifier.public void setCatEntry(Item aCatEntry)
setCatEntry
in interface
CheckInventoryAvailabilityCmd
aCatEntry
- the store identifier, catalog entry identifier,
and quantity of the Item are used.public void setCatEntryFulfillmentCenters(java.util.Vector avCatEntryFulfillmentCenters)
setCatEntryFulfillmentCenters
in interface
CheckInventoryAvailabilityCmd
avCatEntryFulfillmentCenters
- list of fulfillment center
identifiers (Vector of Integer).public void setUnitOfMeasure(java.lang.String astrUnitOfMeasure)
setUnitOfMeasure
in interface
CheckInventoryAvailabilityCmd
astrUnitOfMeasure
- unit of measure.