com.ibm.commerce.orderitems.commands

Interface ResolveOrderItemPriceCmd

  • 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:
    ResolveOrderItemPriceCmdImpl


    public interface ResolveOrderItemPriceCmd
    extends TaskCommand
    This command is used to resolve price for a group of order items from one order. The default implementation of this command is ResolveOrderItemPriceCmdImpl.
    See Also:
    ResolveOrderItemPriceCmdImpl
    • Field Detail

      • COPYRIGHT

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

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

      • setOrderItemConfigurationIdIn

        void setOrderItemConfigurationIdIn(java.util.Map mapConfigurationId)
        This method sets the configuration IDs passed in for the order items
        Parameters:
        mapConfigurationId - the hash map of the configuration IDs: <(String)orderItemId, (String)configurationId>
      • setOrderItems

        void setOrderItems(java.util.Vector orderItems)
        This method sets the order items that needs to be re-priced.
        Parameters:
        orderItems - the vector of the order item access beans
      • setOrder

        void setOrder(OrderAccessBean oab)
        This method passes in the Order Access Bean that the order items belong to. If the order items are not set, get all the order items in this order to resolve price.
        Parameters:
        oab - the order access bean to be passed in.
      • setDoPrice

        void setDoPrice(boolean doPrice)
        This method sets the flag of doPrice, if false, some of the order items might skip re-pricing if just refreshed before
        Parameters:
        doPrice - the boolean value of the flag
      • setOrderItemTradingIdsIn

        void setOrderItemTradingIdsIn(java.util.Map trading)
        This method sets the trading IDs passed in for the order items
        Parameters:
        trading - the hash map of the trading IDs: <(String)orderItemId, (Long[])tradingIds>
      • setOrderItemOfferIdsIn

        void setOrderItemOfferIdsIn(java.util.Map offer)
        This method sets the offer IDs passed in for the order items
        Parameters:
        offer - the hash map of the offer IDs: <(String)orderItemId, (Long[])offerIds>
      • setCurrency

        void setCurrency(java.lang.String currency)
        This method sets the currency that the order items need to be re-priced on
        Parameters:
        currency -
      • getUpdatedOrderItems

        java.util.Vector getUpdatedOrderItems()
        This method returns the order items that are actually re-priced
        Returns:
        the vector of the updated order items access beans
      • setIsUnitPriceCommand

        void setIsUnitPriceCommand(boolean unitPrice)
        This method sets the corresponding Price interface to invoke
        Parameters:
        unitPrice - the boolean value to indicate which interface to invoke if true, GetContractUnitPriceCmd is invoked, else GetContractSpecialPriceCmd is invoked
      • setForceRefresh

        void setForceRefresh(boolean refreshAll)
        This method sets the flag forceRefresh, if true, all the order items needs to be refresh even if it's just refreshed
        Parameters:
        refreshAll - the boolean value of the flag
      • setOIComponents

        void setOIComponents(java.util.Hashtable oiComps)
        This method sets the order item components of a dynamic kit that needs to refresh price.
        Parameters:
        oiComps - the hashtable of the order item components access beans <(String)orderItemId, Vector of order item components access beans>