java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.fulfillment.commands.GetEligibleFulfillmentCentersCmdImpl
The default implementation of the
GetEligibleFulfillmentCenters
task command interface.
For each input item, returns a list of fulfillment centers (ordered in
sequence of descending preference from first to last) that could ship that item
if there was sufficient inventory.
Refer to the
performExecute
method for a description of its behaviour.
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 |
istrPrintFulfillmentCentersFunc 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. GetEligibleFulfillmentCentersCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GetEligibleFulfillmentCentersCmdImpl() |
Method Summary | |
---|---|
java.util.Vector |
getAllOrderItems() Deprecated. This method will be changed to protected. |
java.util.Vector |
getFulfillmentCenters() Returns a list of fulfillment centers that could ship an item specified by the setOrderItem method. |
java.util.Hashtable |
getOrderItemFulfillmentCentersMaps() Gets lists of fulfillment centers which can ship items specified by the setOrderItems method. |
java.util.Vector |
getOrderItems() Deprecated. This method will be changed to protected. |
java.lang.Integer |
getPreferredFulfillmentCenterId() Deprecated. This method will be changed to protected. |
void |
performExecute() Performs the actual business logic of the command. |
void |
reset() This method should be called after a command has been executed to reset its instance variables. |
void |
setAllOrderItems(java.util.Vector newAllOrderItems) Sets all order items to be considered when determining fulfillment centers. |
void |
setOrderItem(
Item anOrderItemData) Sets the item (with specified catalog entry id) for which eligible fulfillment centers are to be determined. |
void |
setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps) Sets the lists of fulfillment centers which can ship items specified by the setOrderItems method. |
void |
setOrderItems(java.util.Vector newOrderItems) Sets the item (with specified catalog entry id) for which eligible fulfillment centers are to be determined. |
void |
setPreferredFulfillmentCenterId(java.lang.Integer newPreferredFulfillmentCenterId) Sets the preferred fulfillment center. |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String istrThisClass
protected static final java.lang.String istrPerformFunc
protected static final java.lang.String istrCheckParametersFunc
protected static final java.lang.String istrPrintFulfillmentCentersFunc
Constructor Detail |
---|
public GetEligibleFulfillmentCentersCmdImpl()
Method Detail |
---|
public java.util.Vector getAllOrderItems()
Item
.public java.util.Vector getFulfillmentCenters()
getFulfillmentCenters
in interface
GetEligibleFulfillmentCentersCmd
public java.util.Hashtable getOrderItemFulfillmentCentersMaps()
getOrderItemFulfillmentCentersMaps
in interface
GetEligibleFulfillmentCentersCmd
public java.util.Vector getOrderItems()
public java.lang.Integer getPreferredFulfillmentCenterId()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setAllOrderItems(java.util.Vector newAllOrderItems)
setAllOrderItems
in interface
GetEligibleFulfillmentCentersCmd
newAllOrderItems
- a Vector of
com.ibm.commerce.order.calculation.Item.public void setOrderItem(Item anOrderItemData)
setOrderItem
in interface
GetEligibleFulfillmentCentersCmd
anOrderItemData
- the order item.public void setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps)
newOrderItemFulfillmentCentersMaps
- Hashtable:
public void setOrderItems(java.util.Vector newOrderItems)
setOrderItems
in interface
GetEligibleFulfillmentCentersCmd
newOrderItems
- a Vector of
Item
.public void setPreferredFulfillmentCenterId(java.lang.Integer newPreferredFulfillmentCenterId)
setPreferredFulfillmentCenterId
in interface
GetEligibleFulfillmentCentersCmd
newPreferredFulfillmentCenterId
- the identifier of the
preferred fulfillment center.