public class CheckInventoryAvailabilityCmdImpl extends TaskCommandImpl implements CheckInventoryAvailabilityCmd
CheckInventoryAvailability
task command
interface.
For single level, static kits, function that was provided by this class in WebSphere Commerce versions 5.5 and 5.6 has been moved. It is moved to the AvailInvStore and AvailRADate stored procedures.
Modifier and Type | Field and Description |
---|---|
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.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CheckInventoryAvailabilityCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERR_CHECK_INV
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 interface com.ibm.websphere.command.TargetableCommand
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 interface com.ibm.websphere.command.Command
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
ahsOrderItemFulfillmentCentersMaps
- 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.