java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
This is an abstract base class for the generic inventory commands.
Field Summary | |
---|---|
protected
java.lang.Long |
catEntryId |
protected
java.lang.Integer |
fulfillmentCenterId |
protected
java.lang.Long |
itemSpecId |
protected
StoreAccessBean |
origStore |
protected
java.lang.Integer |
quantity |
protected
java.lang.Long |
reservationId |
protected
StoreAccessBean |
store |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.command. TaskCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GenericInventoryBaseCmdImpl() Default constructor. |
Method Summary | |
---|---|
java.lang.Long |
getCatEntryId() Get catalog entry id. |
java.lang.Integer |
getFulfillmentCenterId() Returns the id of the fulfillment center that the inventory reservation took place. |
java.lang.Long |
getItemSpecId() Get Item specification id. |
java.lang.Integer |
getQuantity() Get Quantity. |
java.lang.Long |
getReservationId() Returns the reservation id for ATP enabled stores. |
StoreAccessBean |
getStore() Get store access bean. |
void |
initParameters() Initialize some parameters for the command. |
boolean |
isGeneric() |
boolean |
isReadyToCallExecute() Returns true when it is ready to execute. |
void |
reset() Reset the command's parameters. |
protected
void |
resetParameters() Reset to the original store for the command context. |
void |
setCatEntryId(java.lang.Long param) Set the catalog Id of the product to reserve. |
void |
setFulfillmentCenterId(java.lang.Integer fid) Set the fulfillment center that the inventory reservation took place. |
void |
setItemSpecId(java.lang.Long newItemSpecId) Set the item specification id. |
void |
setQuantity(java.lang.Integer argQuantity) Set the quantity of the product to reserve. |
void |
setReservationId(java.lang.Long rid) Set the reservation id for ATP enabled stores. |
void |
setStore(
StoreAccessBean param) Set the store object in which this reservation is taking place. |
void |
updateInventoryForNonATP() Update inventory for non-ATP store. |
void |
validateParameters() Validate the command's parameters. |
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,
performExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
protected java.lang.Long catEntryId
protected java.lang.Long reservationId
protected java.lang.Integer fulfillmentCenterId
protected StoreAccessBean store
protected StoreAccessBean origStore
protected java.lang.Integer quantity
protected java.lang.Long itemSpecId
Constructor Detail |
---|
public GenericInventoryBaseCmdImpl()
Method Detail |
---|
public java.lang.Long getCatEntryId()
public java.lang.Integer getFulfillmentCenterId()
public java.lang.Long getItemSpecId()
public java.lang.Integer getQuantity()
public java.lang.Long getReservationId()
public StoreAccessBean getStore()
public void initParameters() throws ECSystemException
ECSystemException
public boolean isGeneric()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void reset()
reset
in class
AbstractECTargetableCommand
protected void resetParameters()
public void setCatEntryId(java.lang.Long param)
param
- java.lang.Longpublic void setFulfillmentCenterId(java.lang.Integer fid)
public void setItemSpecId(java.lang.Long newItemSpecId)
newItemSpecId
- java.lang.Stringpublic void setQuantity(java.lang.Integer argQuantity)
argQuantity
- java.lang.Longpublic void setReservationId(java.lang.Long rid)
public void setStore(StoreAccessBean param)
param
-
com.ibm.commerce.common.objects.StoreAccessBeanpublic void updateInventoryForNonATP() throws ECException
ECException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException