com.ibm.commerce.inventory.commands
Class GenericInventoryAdjustCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
                  com.ibm.commerce.inventory.commands.GenericInventoryAdjustCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, GenericInventoryAdjustCmd, TaskCommand

public class GenericInventoryAdjustCmdImpl
extends GenericInventoryBaseCmdImpl
implements GenericInventoryAdjustCmd

This command adjusts(increases/releases) inventory for the specified product. This command can be used for both ATP and non-ATP stores.

See Also:
Serialized Form

Field Summary
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.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.inventory.commands.GenericInventoryAdjustCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
GenericInventoryAdjustCmdImpl()
Default constructor.
Method Summary
protected void adjustInventoryForATP()
Adjust a reservation's quantity.
void initParameters()
Initialize some parameters for the command.
void performExecute()
Adjust inventory reservation.
void reset()
Reset command's parameter.
void validateParameters()
Validate the command's parameters.
Methods inherited from class com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
getCatEntryId, getFulfillmentCenterId, getItemSpecId, getQuantity, getReservationId, getStore, isGeneric, isReadyToCallExecute, resetParameters, setCatEntryId, setFulfillmentCenterId, setItemSpecId, setQuantity, setReservationId, setStore, updateInventoryForNonATP
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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.GenericInventoryAdjustCmd
setCatEntryId, setFulfillmentCenterId, setQuantity, setReservationId, setStore

Constructor Detail

GenericInventoryAdjustCmdImpl

public GenericInventoryAdjustCmdImpl()
Default constructor.
Method Detail

adjustInventoryForATP

protected void adjustInventoryForATP()
                              throws ECException
Adjust a reservation's quantity. Positive quantity for increase reservation, Negative for decrease. Creation date: (9/7/2001 4:42:27 PM)
Throws:
ECException

initParameters

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

performExecute

public void performExecute()
                    throws ECException
Adjust inventory reservation. When a positive quantity is set that means increasing reservation. When a negative quantity is set that means releasing reservation.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

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

validateParameters

public void validateParameters()
                        throws ECException
Validate the command's parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class GenericInventoryBaseCmdImpl
Throws:
ECException

Feedback