com.ibm.commerce.inventory.commands
Class GenericInventoryBaseCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
All Implemented Interfaces:
ECCommand, TaskCommand
Direct Known Subclasses:
GenericInventoryAdjustCmdImpl, GenericInventoryReserveCmdImpl

public abstract class GenericInventoryBaseCmdImpl
extends TaskCommandImpl

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

catEntryId

protected java.lang.Long catEntryId

fulfillmentCenterId

protected java.lang.Integer fulfillmentCenterId

itemSpecId

protected java.lang.Long itemSpecId

origStore

protected StoreAccessBean origStore

quantity

protected java.lang.Integer quantity

reservationId

protected java.lang.Long reservationId

store

protected StoreAccessBean store
Constructor Detail

GenericInventoryBaseCmdImpl

public GenericInventoryBaseCmdImpl()
Default constructor.
Method Detail

getCatEntryId

public java.lang.Long getCatEntryId()
Get catalog entry id. Creation date: (9/7/2001 10:20:50 AM)
Returns:
java.lang.Long

getFulfillmentCenterId

public java.lang.Integer getFulfillmentCenterId()
Returns the id of the fulfillment center that the inventory reservation took place. Creation date: (9/7/2001 10:03:40 AM)
Returns:
java.lang.Integer

getItemSpecId

public java.lang.Long getItemSpecId()
Get Item specification id. Creation date: (9/7/2001 10:14:44 AM)
Returns:
java.lang.String

getQuantity

public java.lang.Integer getQuantity()
Get Quantity. Creation date: (9/7/2001 10:21:14 AM)
Returns:
java.lang.Integer

getReservationId

public java.lang.Long getReservationId()
Returns the reservation id for ATP enabled stores. Returns null for the non-ATP stores. Creation date: (9/7/2001 10:03:40 AM)
Returns:
java.lang.Long

getStore

public StoreAccessBean getStore()
Get store access bean. Creation date: (9/7/2001 10:22:44 AM)
Returns:
com.ibm.commerce.common.objects.StoreAccessBean

initParameters

public void initParameters()
                    throws ECSystemException
Initialize some parameters for the command. Creation date: (9/7/2001 10:38:06 AM)

isGeneric

public boolean isGeneric()

isReadyToCallExecute

public boolean isReadyToCallExecute()
Returns true when it is ready to execute.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Returns:
boolean

reset

public void reset()
Reset the command's parameters.
Overrides:
reset in class AbstractECCommand

resetParameters

protected void resetParameters()
Reset to the original store for the command context.

setCatEntryId

public void setCatEntryId(java.lang.Long param)
Set the catalog Id of the product to reserve. Creation date: (9/7/2001 10:03:40 AM)
Parameters:
param - java.lang.Long

setFulfillmentCenterId

public void setFulfillmentCenterId(java.lang.Integer fid)
Set the fulfillment center that the inventory reservation took place. Creation date: (9/7/2001 10:03:40 AM)
Returns:
void

setItemSpecId

public void setItemSpecId(java.lang.Long newItemSpecId)
Set the item specification id. Creation date: (9/7/2001 10:14:44 AM)
Parameters:
newItemSpecId - java.lang.String

setQuantity

public void setQuantity(java.lang.Integer argQuantity)
Set the quantity of the product to reserve. Creation date: (9/7/2001 10:03:40 AM)
Parameters:
argQuantity - java.lang.Long

setReservationId

public void setReservationId(java.lang.Long rid)
Set the reservation id for ATP enabled stores. this Id is getten from the ReserveInventory command. Creation date: (9/7/2001 10:03:40 AM)
Returns:
void

setStore

public void setStore(StoreAccessBean param)
Set the store object in which this reservation is taking place. Creation date: (9/7/2001 10:03:40 AM)
Parameters:
param - com.ibm.commerce.common.objects.StoreAccessBean

updateInventoryForNonATP

public void updateInventoryForNonATP()
                              throws ECException
Update inventory for non-ATP store. Creation date: (9/7/2001 1:59:09 PM)

validateParameters

public void validateParameters()
                        throws ECException
Validate the command's parameters.
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -