com.ibm.commerce.inventory.commands
Class GenericInventoryAdjustCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
|
+--com.ibm.commerce.inventory.commands.GenericInventoryAdjustCmdImpl
- All Implemented Interfaces:
- ECCommand, 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.
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.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.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
GenericInventoryAdjustCmdImpl
public GenericInventoryAdjustCmdImpl()
- Default constructor.
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)
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
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 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
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.
-