com.ibm.commerce.fulfillment.commands
Interface CheckInventoryCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
InventoryBaseCmdImpl

public interface CheckInventoryCmd
extends TaskCommand

CheckInventory let you check inventory for items. There are two ways to check inventory.

The fulfillmentCenterId is optional.

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


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String ERRTASK_NAME
           
static java.lang.String NAME
           
 
Method Summary
 void setCatEntryId(java.lang.Long aCatEntryId)
          Set a Catalog Entry Id to check the inventory.
 void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
          Set a fulfillment center Id to check the inventory.
 void setOrderItem(OrderItemAccessBean anOrderItem)
          Set an OrderItem to check the inventory.
 void setOrderItem(OrderItemAccessBean[] orderItems)
          Set a list of OrderItems to check the inventory.
 void setOrderItem(java.util.Vector anOrderItemList)
          Set a list of OrderItems to check the inventory.
 void setQuantity(java.lang.Double aQuantity)
          Set a quantity to check the inventory.
 void setQuantityMeasure(java.lang.String quantityMeasure)
          Set a quantity measure to check the inventory (optional).
 void setStoreId(java.lang.Integer aStoreId)
          Set a store id to check the inventory.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME

NAME

public static final java.lang.String NAME
Method Detail

setCatEntryId

public void setCatEntryId(java.lang.Long aCatEntryId)
Set a Catalog Entry Id to check the inventory.

setFulfillmentCenterId

public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
Set a fulfillment center Id to check the inventory.

setOrderItem

public void setOrderItem(OrderItemAccessBean anOrderItem)
Set an OrderItem to check the inventory.

setOrderItem

public void setOrderItem(OrderItemAccessBean[] orderItems)
Set a list of OrderItems to check the inventory.

setOrderItem

public void setOrderItem(java.util.Vector anOrderItemList)
Set a list of OrderItems to check the inventory.

setQuantity

public void setQuantity(java.lang.Double aQuantity)
Set a quantity to check the inventory.

setQuantityMeasure

public void setQuantityMeasure(java.lang.String quantityMeasure)
Set a quantity measure to check the inventory (optional).

setStoreId

public void setStoreId(java.lang.Integer aStoreId)
Set a store id to check the inventory.