|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.fulfillment.commands.GetEligibleFulfillmentCentersCmdImpl
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.
Behaviour
The default implementation behaves as follows:
For each distinct store, shipping address and shipping mode combination in those input order items in whose fulfillment centers are not overridden in their PREPAREFLAGS attributes:
The result is a list of eligible fulfillment centers for each distinct shipping address and shipping mode combination.
For each order item:
Field Summary | |
static java.lang.String |
COPYRIGHT
|
protected static java.lang.String |
istrCheckParametersFunc
|
protected static java.lang.String |
istrPerformFunc
|
protected static java.lang.String |
istrPrintFulfillmentCentersFunc
|
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.GetEligibleFulfillmentCentersCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
GetEligibleFulfillmentCentersCmdImpl()
|
Method Summary | |
java.util.Vector |
getAllOrderItems()
Gets all order items to be considered when determining fulfillment centers. |
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()
Gets the order items for which eligible fulfillment centers are to be determined. |
java.lang.Integer |
getPreferredFulfillmentCenterId()
Gets the fulfillment center preference to ship order items with pending status from. |
void |
performExecute()
Contains the actual business logic of the command. |
void |
reset()
This method should be called after a command has been executed to reset its states 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 fulfillment center preference to ship order items with pending status from. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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, validateParameters |
Field Detail |
public static final java.lang.String COPYRIGHT
protected static java.lang.String istrCheckParametersFunc
protected static java.lang.String istrPerformFunc
protected static java.lang.String istrPrintFulfillmentCentersFunc
protected static java.lang.String istrThisClass
Constructor Detail |
public GetEligibleFulfillmentCentersCmdImpl()
Method Detail |
public java.util.Vector getAllOrderItems()
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 AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
reset
in class AbstractECCommand
public void setAllOrderItems(java.util.Vector newAllOrderItems)
setAllOrderItems
in interface GetEligibleFulfillmentCentersCmd
public void setOrderItem(Item anOrderItemData)
setOrderItem
in interface GetEligibleFulfillmentCentersCmd
public void setOrderItemFulfillmentCentersMaps(java.util.Hashtable newOrderItemFulfillmentCentersMaps)
public void setOrderItems(java.util.Vector newOrderItems)
setOrderItems
in interface GetEligibleFulfillmentCentersCmd
public void setPreferredFulfillmentCenterId(java.lang.Integer newPreferredFulfillmentCenterId)
setPreferredFulfillmentCenterId
in interface GetEligibleFulfillmentCentersCmd
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |