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.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands. DeallocateExistingInventoryCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
DeallocateExistingInventoryCmdImpl()
           
 
Method Summary
  OrderItemAccessBean getOrderItem()
          Deprecated. Will be changed to protected.
 void performExecute()
          Performs the actual business logic of the command.
 void setOrderItem( OrderItemAccessBean newOrderItem)
          Sets the order item for which existing inventory is to be deallocated.
 void validateParameters()
          Performs server side parameter checking.
 
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
 

Field Detail
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.
Constructor Detail

DeallocateExistingInventoryCmdImpl

public DeallocateExistingInventoryCmdImpl()
Method Detail

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
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.