com.ibm.commerce.fulfillment.commands

Interface GetEligibleFulfillmentCentersCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    GetEligibleFulfillmentCentersCmdImpl


    public interface GetEligibleFulfillmentCentersCmd
    extends TaskCommand
    For each input item, it returns a list of fulfillment centers (ordered in sequence of descending preference from first to last). This would ship that item if there was sufficient inventory.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this command interface.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The name of the default implementation class for this command interface.
        See Also:
        Constant Field Values
    • Method Detail

      • getFulfillmentCenters

        java.util.Vector getFulfillmentCenters()
        Returns a list of fulfillment centers that could ship an item specified by the setOrderItem method.

        This method is used to obtain a list of fulfillment centers for an order item, if only one order item has been passed as input. If more than one order item data has been passed as input then getOrderItemFulfillmentCentersMaps should be called instead.
        Returns:
        a Vector of Integer fulfillment center identifiers.
      • getOrderItemFulfillmentCentersMaps

        java.util.Hashtable getOrderItemFulfillmentCentersMaps()
        Gets lists of fulfillment centers which can ship items specified by the setOrderItems method.
        Returns:
        HashTable:
        • key - (Long) The OrderItem identifier, if known. Otherwise, It's a negative number.
        • value - (Object[2]) Object[0] is the com.ibm.commerce.order.calculation.Item. Object[1] is a Vector of Integer fulfillment center identifiers.
      • setAllOrderItems

        void setAllOrderItems(java.util.Vector newAllOrderItems)
        Sets all order items to be considered when determining fulfillment centers. Normally this is all the order items in an order. If setAllOrderItems is not called, this command behaves as if it was called with the same OrderItems specified by setOrderItem or setOrderItems.
        Parameters:
        newAllOrderItems - a Vector of com.ibm.commerce.order.calculation.Item.
      • setOrderItem

        void setOrderItem(Item anOrderItemData)
        Sets the item (with specified catalog entry id) for which eligible fulfillment centers are to be determined. If both setOrderItem and SetOrderItems are called, only the last call has effect.
        Parameters:
        anOrderItemData - the order item.
      • setOrderItems

        void setOrderItems(java.util.Vector newOrderItems)
        Sets the item (with specified catalog entry id) for which eligible fulfillment centers are to be determined. If both setOrderItem and SetOrderItems are called, only the last call has effect.
        Parameters:
        newOrderItems - a Vector of Item.
      • setPreferredFulfillmentCenterId

        void setPreferredFulfillmentCenterId(java.lang.Integer newPreferredFulfillmentCenterId)
        Sets the preferred fulfillment center.
        Parameters:
        newPreferredFulfillmentCenterId - the identifier of the preferred fulfillment center.