com.ibm.commerce.fulfillment.commands
Class DeallocateExistingInventoryCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.fulfillment.commands.DeallocateExistingInventoryCmdImpl
- All Implemented Interfaces:
- DeallocateExistingInventoryCmd, ECCommand, ECTargetableCommand, TaskCommand
- public class DeallocateExistingInventoryCmdImpl
- extends TaskCommandImpl
- implements DeallocateExistingInventoryCmd
The default implementation of the DeallocateExistingInventory task command interface.
Refer to the performExecute method for a description of its behaviour.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
protected static java.lang.String |
istrCheckParametersFunc
Deprecated. Will be changed to private. |
protected static java.lang.String |
istrPerformFunc
Deprecated. Will be changed to private. |
protected static java.lang.String |
istrThisClass
Deprecated. Will be changed to private. |
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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
istrThisClass
protected static java.lang.String istrThisClass
- Deprecated. Will be changed to private.
istrPerformFunc
protected static java.lang.String istrPerformFunc
- Deprecated. Will be changed to private.
istrCheckParametersFunc
protected static java.lang.String istrCheckParametersFunc
- Deprecated. Will be changed to private.
DeallocateExistingInventoryCmdImpl
public DeallocateExistingInventoryCmdImpl()
getOrderItem
public OrderItemAccessBean getOrderItem()
- Deprecated. Will be changed to protected.
- Gets the orderitem previously set by the setOrderItem method, or null.
-
- Returns:
- The order item, or null.
performExecute
public void performExecute()
throws ECException
- Performs the actual business logic of the command.
Behaviour
- If the order item is currently allocated, the amount allocated is returned to existing inventory. The order item is updated to indicate that it is no longer allocated.
- Otherwise, the order item is not changed.
This default implementation calls the reverseinventory database stored procedure.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
setOrderItem
public void setOrderItem(OrderItemAccessBean newOrderItem)
- Sets the order item for which existing inventory is to be deallocated.
-
- Specified by:
- setOrderItem in interface DeallocateExistingInventoryCmd
-
- Parameters:
- newOrderItem - the order item for which existing inventory is to be deallocated.
validateParameters
public void validateParameters()
throws ECException
- Performs server side parameter checking.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECException
- ECApplicationException - Thrown with message _ERR_BAD_MISSING_CMD_PARAMETER when the orderitem was not set.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.