com.ibm.commerce.fulfillment.commands
Class DeallocateExistingInventoryCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.fulfillment.commands.DeallocateExistingInventoryCmdImpl
All Implemented Interfaces:
DeallocateExistingInventoryCmd, ECCommand, TaskCommand

public class DeallocateExistingInventoryCmdImpl
extends TaskCommandImpl
implements DeallocateExistingInventoryCmd

Deallocates existing inventory for a particular order item.

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.


Field Summary
static java.lang.String COPYRIGHT
           
protected static java.lang.String istrCheckParametersFunc
           
protected static java.lang.String istrPerformFunc
           
protected static java.lang.String istrThisClass
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands.DeallocateExistingInventoryCmd
defaultCommandClassName, NAME
 
Constructor Summary
DeallocateExistingInventoryCmdImpl()
           
 
Method Summary
 OrderItemAccessBean getOrderItem()
          Gets an order item for which existing inventory is to be deallocated.
 void performExecute()
          Contains the actual business logic of the command.
 void setOrderItem(OrderItemAccessBean newOrderItem)
          Sets an 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.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

istrCheckParametersFunc

protected static java.lang.String istrCheckParametersFunc

istrPerformFunc

protected static java.lang.String istrPerformFunc

istrThisClass

protected static java.lang.String istrThisClass
Constructor Detail

DeallocateExistingInventoryCmdImpl

public DeallocateExistingInventoryCmdImpl()
Method Detail

getOrderItem

public OrderItemAccessBean getOrderItem()
Gets an order item for which existing inventory is to be deallocated.

performExecute

public void performExecute()
                    throws ECException
Contains the actual business logic of the command.
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.

setOrderItem

public void setOrderItem(OrderItemAccessBean newOrderItem)
Sets an order item for which existing inventory is to be deallocated.
Specified by:
setOrderItem in interface DeallocateExistingInventoryCmd

validateParameters

public void validateParameters()
                        throws ECException
Performs server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -