com.ibm.commerce.inventory.commands
Class GenericInventoryReserveCmdImpl

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

public class GenericInventoryReserveCmdImpl
extends GenericInventoryBaseCmdImpl
implements GenericInventoryReserveCmd

This command reserves inventory for a specified product. This command can be used for both ATP and non-ATP stores.


Field Summary
protected  java.lang.String description
           
protected  java.lang.Long reservationType
           
 
Fields inherited from class com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
catEntryId, fulfillmentCenterId, itemSpecId, origStore, quantity, reservationId, store
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.inventory.commands.GenericInventoryReserveCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
GenericInventoryReserveCmdImpl()
          Default constructor.
 
Method Summary
protected  void createReservationForATP()
          Create a reservation for ATP enabled store.
 java.lang.String getDescription()
          Get the description for this reservation.
 java.lang.Long getReservationType()
          Get reservation type.
 void performExecute()
          Reserve inventory for the specified catalog entry based on the fulfillment center and quantity.
 void reset()
          Reset command's parameter.
 void setDescription(java.lang.String newDescription)
          Set the description for this reservation.
 void setReservationType(java.lang.Long param)
          Set the type of reservation.
 void validateParameters()
          Validate the command's parameters.
 
Methods inherited from class com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
getCatEntryId, getFulfillmentCenterId, getItemSpecId, getQuantity, getReservationId, getStore, initParameters, isGeneric, isReadyToCallExecute, resetParameters, setCatEntryId, setFulfillmentCenterId, setItemSpecId, setQuantity, setReservationId, setStore, updateInventoryForNonATP
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, 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.inventory.commands.GenericInventoryReserveCmd
getFulfillmentCenterId, getReservationId, setCatEntryId, setQuantity, setStore
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

description

protected java.lang.String description

reservationType

protected java.lang.Long reservationType
Constructor Detail

GenericInventoryReserveCmdImpl

public GenericInventoryReserveCmdImpl()
Default constructor.
Method Detail

createReservationForATP

protected void createReservationForATP()
                                throws ECException
Create a reservation for ATP enabled store. Creation date: (9/7/2001 11:44:23 AM)
Returns:
void

getDescription

public java.lang.String getDescription()
Get the description for this reservation. Creation date: (9/7/2001 1:30:09 PM)
Returns:
java.lang.String

getReservationType

public java.lang.Long getReservationType()
Get reservation type. This is for ATP enabled stores only. Creation date: (9/7/2001 1:14:17 PM)
Returns:
java.lang.Long

performExecute

public void performExecute()
                    throws ECException
Reserve inventory for the specified catalog entry based on the fulfillment center and quantity.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

public void reset()
Reset command's parameter.
Overrides:
reset in class GenericInventoryBaseCmdImpl

setDescription

public void setDescription(java.lang.String newDescription)
Set the description for this reservation. Creation date: (9/7/2001 1:30:09 PM)
Specified by:
setDescription in interface GenericInventoryReserveCmd
Parameters:
newDescription - java.lang.String

setReservationType

public void setReservationType(java.lang.Long param)
Set the type of reservation. Not required for non-ATP store. Creation date: (9/7/2001 10:03:40 AM)
Specified by:
setReservationType in interface GenericInventoryReserveCmd
Parameters:
param - java.lang.Long

validateParameters

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