com.ibm.commerce.order.facade.server.commands

Class AbstractComposeOrderCmdImpl

  • java.lang.Object
    • com.ibm.commerce.order.facade.server.commands.AbstractComposeOrderCmdImpl
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractComposeOrderCmdImpl

        public AbstractComposeOrderCmdImpl()
    • Method Detail

      • setPagingParameters

        public void setPagingParameters(ShowType newPagingParameters)
        Sets the paging parameters.
        Specified by:
        setPagingParameters in interface ComposeOrderCmd
        Parameters:
        newPagingParameters - The paging parameters to set.
      • composeOrder

        public OrderType composeOrder(com.ibm.commerce.order.beans.OrderSOIDataBean dbOrder)
        This method composes the Order SDO with order total product after discount.
        Parameters:
        dbOrder - the order SOI data bean
        Returns:
        the Order SDO
      • composeOrderItem

        public OrderType composeOrderItem(java.util.List orderItems,
                                          boolean onlyProductID)
        This method composes the Order SDO with order item product ID if onlyProductID is true. If onlyProductID is false, the order item quantity and total product after discount will also be populated.
        Parameters:
        orderItems - a list of OrderItemSOIDataBean
        onlyProductID - if only populate product ID
        Returns:
        the Order SDO
      • setOrders

        public void setOrders(java.util.List avOrders)
        This method sets the list of orders.
        Specified by:
        setOrders in interface ComposeOrderCmd
        Parameters:
        avOrders -
      • getOrders

        public java.util.List getOrders()
        This method gets the list of orders.
        Returns:
        orders
      • getShowOrder

        public ShowOrderType getShowOrder()
        This method gets the instance of ShowOrderType.
        Specified by:
        getShowOrder in interface ComposeOrderCmd
        Returns:
        the instance value of ShowOrderType.
      • setShowOrder

        public void setShowOrder(ShowOrderType aShowOrder)
        This method sets the instance of ShowOrderType.
        Parameters:
        aShowOrder - the instance value of ShowOrderType.
      • reset

        public void reset()
        This method resets this command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        See Also:
        Command.reset()
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method returns if this command is ready to execute
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Returns:
        boolean
        See Also:
        Command.isReadyToCallExecute()