com.ibm.commerce.fulfillment.commands
Class ResolveFulfillmentCenterCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.fulfillment.commands.InventoryBaseCmdImpl
                          |
                          +--com.ibm.commerce.fulfillment.commands.ResolveFulfillmentCenterCmdImpl
All Implemented Interfaces:
CheckInventoryCmd, ECCommand, ECTargetableCommand, ResolveFulfillmentCenterCmd, ReverseUpdateInventoryCmd, TaskCommand, UpdateInventoryCmd

public class ResolveFulfillmentCenterCmdImpl
extends InventoryBaseCmdImpl
implements ResolveFulfillmentCenterCmd

Resolve fulfillment center id for a catalog entry or a list of order items. There are two ways to specify the input.

The shipping mode id is optional. If this parameter is not set, the command will use the default ship mode id for the store. The fulfillmentCenterId is optional. If it is set, the command will try to use this fulfillment center to check the inventory. You can call getFulfillmentCenterId to see if the fulfillment center id is still the same after resolving.

If the resolving fulfillment center fails, it throws ECApplicationException with the message key _API_CANT_RESOLVE_FFMCENTER and the error view of ResolveFulfillmentCenterErrorView.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.Integer iRequestFulfillmentId
           
protected  java.util.Vector ivOutOrderItems
           
 
Fields inherited from class com.ibm.commerce.fulfillment.commands. InventoryBaseCmdImpl
CHECK_INVENTORY, ERR_CHECK_INV, iAction, iCatEntryId, iFulfillmentCenterId, iOrderItems, iQuantity, iQuantityMeasure, iShipModeId, iStoreId, NO_CHECK, NO_RECOMMENDATION, NO_UPDATE, REVERSE_UPDATE_INVENTORY, UPDATE_INVENTORY
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands. ResolveFulfillmentCenterCmd
defaultCommandClassName, ERR_CODE_NO_FFMCENTER, ERR_CODE_NO_INVENTORY, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands. CheckInventoryCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands. UpdateInventoryCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.fulfillment.commands. ReverseUpdateInventoryCmd
defaultCommandClassName, ERRTASK_NAME, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
ResolveFulfillmentCenterCmdImpl()
           
 
Method Summary
 java.lang.Integer getFulfillmentCenterId()
          Get the fulfillment center Id.
 java.util.Vector getOutOrderItems()
          Insert the method's description here.
protected  java.lang.Integer getShipModeId()
           
 void performExecute()
          The business logic for this command.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
          Set a fulfillment center Id.
 void setOutOrderItems(java.util.Vector newOutOrderItems)
          Insert the method's description here.
 void setShipModeId(java.lang.Integer aShipModeId)
          Set the shipping mode Id.
 
Methods inherited from class com.ibm.commerce.fulfillment.commands. InventoryBaseCmdImpl
checkUpdateInventory, convertQuantity, convertQuantity, convertQuantity, findByCatalogEntryAndFulfillmentCenterAndStore, flagIsSet, getCatEntryId, getOrderItem, getQuantity, getQuantityMeasure, isReadyToCallExecute, setCatEntryId, setOrderItem, setOrderItem, setOrderItem, setQuantity, setQuantityMeasure, setStoreId, validateParameters
 
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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.fulfillment.commands. ResolveFulfillmentCenterCmd
setCatEntryId, setOrderItem, setOrderItem, setOrderItem, setQuantity, setQuantityMeasure, setStoreId
 

Field Detail
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

iRequestFulfillmentId

protected java.lang.Integer iRequestFulfillmentId

ivOutOrderItems

protected java.util.Vector ivOutOrderItems
Constructor Detail

ResolveFulfillmentCenterCmdImpl

public ResolveFulfillmentCenterCmdImpl()
Method Detail

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class InventoryBaseCmdImpl

getFulfillmentCenterId

public java.lang.Integer getFulfillmentCenterId()
Get the fulfillment center Id.
Specified by:
getFulfillmentCenterId in interface ResolveFulfillmentCenterCmd
Overrides:
getFulfillmentCenterId in class InventoryBaseCmdImpl

getOutOrderItems

public java.util.Vector getOutOrderItems()
Insert the method's description here. Creation date: (03/23/01 12:27:21 PM)
Specified by:
getOutOrderItems in interface ResolveFulfillmentCenterCmd
Returns:
java.util.Vector

getShipModeId

protected java.lang.Integer getShipModeId()

performExecute

public void performExecute()
                    throws ECException
Description copied from class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class InventoryBaseCmdImpl
ECException

setFulfillmentCenterId

public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
Set a fulfillment center Id.
Specified by:
setFulfillmentCenterId in interface ResolveFulfillmentCenterCmd
Overrides:
setFulfillmentCenterId in class InventoryBaseCmdImpl

setOutOrderItems

public void setOutOrderItems(java.util.Vector newOutOrderItems)
Insert the method's description here. Creation date: (03/23/01 12:27:21 PM)
Parameters:
newOutOrderItems - java.util.Vector

setShipModeId

public void setShipModeId(java.lang.Integer aShipModeId)
Set the shipping mode Id. (Optional) When this optional parameter is not set, the command will use the default ship mode id for the store.
Specified by:
setShipModeId in interface ResolveFulfillmentCenterCmd