com.ibm.commerce.orderitems.commands
Class SetOrderItemFulfillmentCenterCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.orderitems.commands.SetOrderItemFulfillmentCenterCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, SetOrderItemFulfillmentCenterCmd, TaskCommand

public class SetOrderItemFulfillmentCenterCmdImpl
extends TaskCommandImpl
implements SetOrderItemFulfillmentCenterCmd

This SetOrderItemFulfillmentCenterCmdImpl Task Command Implementation is called by the AssignToSpecifiedFulfillmentCenterCmd Controller Command to set the fulfillment center of the specified order items and allocate inventory for the items.

This command implementation of the SetOrderItemFulfillmentCenterCmd Task Command assumes that there is no change to the tax and shipping charges to the items because of the fulfillment center changes.

This command uses the following AccessBean:

This command calls the following TaskCommands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.orderitems.commands. SetOrderItemFulfillmentCenterCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
SetOrderItemFulfillmentCenterCmdImpl()
          SetOrderItemFulfillmentCenterCmdImpl default constructor.
 
Method Summary
 void performExecute()
          Performs the main business logic of the command.
 void reset()
          Resets the instance variables of the command.
 void setFulfillmentCenterIds(java.util.Vector avFFMCenterIds)
          Sets the fulfillment center ID parameters.
 void setOrderItems(java.util.Vector avOrderItems)
          Sets the OrderItems parameters.
 
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetOrderItemFulfillmentCenterCmdImpl

public SetOrderItemFulfillmentCenterCmdImpl()
SetOrderItemFulfillmentCenterCmdImpl default constructor.
Method Detail

performExecute

public void performExecute()
                    throws ECException
Performs the main business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException.
ECException

reset

public void reset()
Resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters, then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

This is useful if the command instance is to be called multiple times with different command parameters.

Overrides:
reset in class AbstractECTargetableCommand

setOrderItems

public void setOrderItems(java.util.Vector avOrderItems)
Sets the OrderItems parameters.

Specifies a Vector of OrderItemAccessBeans representing the order items whose fulfillment center ID attributes are to be set to the corresponding fulfillment center ID specified by the fulfillment center ID parameters.

This is a mandatory parameter. If there are more OrderItemAccessBean parameters than fulfillment center ID parameters the extra order items are not changed.

Specified by:
setOrderItems in interface SetOrderItemFulfillmentCenterCmd
Parameters:
avOrderItems - The Vector containing the OrderItemAccessBeans.

setFulfillmentCenterIds

public void setFulfillmentCenterIds(java.util.Vector avFFMCenterIds)
Sets the fulfillment center ID parameters.

This is a manadatory parameter. If there are more fulfillment center ID parameters than OrderItemAccessBean parameters the extra fulfillment center ID parameters are ignored.

Specified by:
setFulfillmentCenterIds in interface SetOrderItemFulfillmentCenterCmd
Parameters:
avFFMCenterIds - The Vector containing the String representation of the fulfillment center IDs that are to be used to set the fulfillment center ID attribute of the corresponding order items.