|
||||||||
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.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.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.command.TaskCommand |
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.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
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, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
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
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
public boolean isGeneric()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class AbstractECCommand
public void reset()
reset
in class AbstractECCommand
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
public void validateParameters() throws ECException
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |