com.ibm.commerce.fulfillment.commands
Interface ResolveFulfillmentCenterCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
ResolveFulfillmentCenterCmdImpl

public interface ResolveFulfillmentCenterCmd
extends TaskCommand

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.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String ERR_CODE_NO_FFMCENTER
           
static java.lang.String ERR_CODE_NO_INVENTORY
           
static java.lang.String ERRTASK_NAME
           
static java.lang.String NAME
           
 
Method Summary
 java.lang.Integer getFulfillmentCenterId()
          Get the fulfillment center Id.
 java.util.Vector getOutOrderItems()
           
 void setCatEntryId(java.lang.Long aCatEntryId)
          Set a Catalog Entry Id.
 void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
          Set a fulfillment center Id.
 void setOrderItem(OrderItemAccessBean anOrderItem)
          Set an OrderItems.
 void setOrderItem(OrderItemAccessBean[] orderItems)
          Set a list of OrderItems.
 void setOrderItem(java.util.Vector anOrderItemList)
          Set a list of OrderItems.
 void setQuantity(java.lang.Double aQuantity)
          Set a quantity.
 void setQuantityMeasure(java.lang.String quantityMeasure)
          Set a quantity measure.
 void setShipModeId(java.lang.Integer aShipModeId)
          Set the shipping mode Id.
 void setStoreId(java.lang.Integer aStoreId)
          Set a store id.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

ERR_CODE_NO_FFMCENTER

public static final java.lang.String ERR_CODE_NO_FFMCENTER

ERR_CODE_NO_INVENTORY

public static final java.lang.String ERR_CODE_NO_INVENTORY

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME

NAME

public static final java.lang.String NAME
Method Detail

getFulfillmentCenterId

public java.lang.Integer getFulfillmentCenterId()
Get the fulfillment center Id.

getOutOrderItems

public java.util.Vector getOutOrderItems()

setCatEntryId

public void setCatEntryId(java.lang.Long aCatEntryId)
Set a Catalog Entry Id.

setFulfillmentCenterId

public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
Set a fulfillment center Id.

setOrderItem

public void setOrderItem(OrderItemAccessBean anOrderItem)
Set an OrderItems.

setOrderItem

public void setOrderItem(OrderItemAccessBean[] orderItems)
Set a list of OrderItems.

setOrderItem

public void setOrderItem(java.util.Vector anOrderItemList)
Set a list of OrderItems.

setQuantity

public void setQuantity(java.lang.Double aQuantity)
Set a quantity.

setQuantityMeasure

public void setQuantityMeasure(java.lang.String quantityMeasure)
Set a quantity measure.

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.

setStoreId

public void setStoreId(java.lang.Integer aStoreId)
Set a store id.