com.ibm.commerce.orderitems.commands

Class OrderItemMoveCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • OrderItemMoveCmdImpl

        public OrderItemMoveCmdImpl()
    • Method Detail

      • getFromOrderItems

        public java.lang.String[] getFromOrderItems()
        Gets the input order items.
        Returns:
        java.lang.String[]
      • getFromOrders

        public java.lang.String[] getFromOrders()
        Gets the orders from which order items will be moved.
        Returns:
        java.lang.String[]
      • getInOrderNames

        public java.lang.String[] getInOrderNames()
        Gets the names of name-value pairs to be added to the redirection URL.
        Returns:
        java.lang.String[]
      • getOrdersToDeleteIfEmpty

        public java.lang.String[] getOrdersToDeleteIfEmpty()
        Gets orders to delete if no order items remain in them after this command completes processing.
        Returns:
        java.lang.String[]
      • getOrdersToDeleteIfNotEmpty

        public java.lang.String[] getOrdersToDeleteIfNotEmpty()
        Deprecated. Replaced by getOrdersToDeleteIfEmpty()
        Gets orders to delete if no order items remain in them after this command completes processing.
        Returns:
        java.lang.String[]
      • getOutOrderItemNames

        public java.lang.String[] getOutOrderItemNames()
        Gets the names of name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of an output order item.
        Returns:
        java.lang.String[]
      • getOutOrderNames

        public java.lang.String[] getOutOrderNames()
        Gets the names of name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of an output order item.
        Returns:
        java.lang.String[]
      • getToOrders

        public java.lang.String[] getToOrders()
        Gets a destination order for the output order items.
        Returns:
        java.lang.String[]
      • getUrl

        public java.lang.String getUrl()
        Gets the URL to be redirected to when the command completes successfully.
        Returns:
        URL
      • reset

        public void reset()
        This method should be called after a command has been executed to reset its state variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setFromOrderItems

        public void setFromOrderItems(java.lang.String[] newFromOrderItems)
        Sets the input order items. Any order items not in the orders specified by the setFromOrders method are ignored.
        Specified by:
        setFromOrderItems in interface OrderItemMoveCmd
        Parameters:
        newFromOrderItems - String[]
      • setFromOrders

        public void setFromOrders(java.lang.String[] newFromOrders)
        Sets the orders from which order items will be moved. This parameter is used to resolve order item abbreviations specified by the setFromOrderItemId method.
        Specified by:
        setFromOrders in interface OrderItemMoveCmd
        Parameters:
        newFromOrders - String[]
      • setInOrderNames

        public void setInOrderNames(java.lang.String[] newInOrderNames)
        Sets the names of name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of an output order.
        Specified by:
        setInOrderNames in interface OrderItemMoveCmd
        Parameters:
        newInOrderNames - String[]
      • setOrdersToDeleteIfEmpty

        public void setOrdersToDeleteIfEmpty(java.lang.String[] newOrdersToDeleteIfEmpty)
        Sets orders to delete if no order items remain in them after this command completes processing.
        Specified by:
        setOrdersToDeleteIfEmpty in interface OrderItemMoveCmd
        Parameters:
        newOrdersToDeleteIfEmpty - String[]
      • setOrdersToDeleteIfNotEmpty

        public void setOrdersToDeleteIfNotEmpty(java.lang.String[] newOrdersToDeleteIfNotEmpty)
        Sets orders to delete if no order items remain in them after this command completes processing.
        Parameters:
        newOrdersToDeleteIfNotEmpty - String[]
      • setOrderToCreateIfEmpty

        public void setOrderToCreateIfEmpty(boolean abOrderToCreateIfEmpty)
        Sets the boolean flag to control the creation of an empty output order when there are not order items to move into it.
        Specified by:
        setOrderToCreateIfEmpty in interface OrderItemMoveCmd
        Parameters:
        abOrderToCreateIfEmpty - boolean
      • setOutOrderItemNames

        public void setOutOrderItemNames(java.lang.String[] newOutOrderItemNames)
        Sets the names of name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of an output order item.
        Specified by:
        setOutOrderItemNames in interface OrderItemMoveCmd
        Parameters:
        newOutOrderItemNames - String[]
      • setOutOrderItems

        public void setOutOrderItems(OrderItemAccessBean[] newOutOrderItems)
        Sets the output order items.
        Parameters:
        newOutOrderItems - OrderItemAccessBean[]
      • setOutOrderNames

        public void setOutOrderNames(java.lang.String[] newOutOrderNames)
        Sets the names of name-value pairs to be added to the redirection URL. The value of each added name-value pair is the reference number of an output order.
        Specified by:
        setOutOrderNames in interface OrderItemMoveCmd
        Parameters:
        newOutOrderNames - String[]
      • setOutOrders

        public void setOutOrders(OrderAccessBean[] newOutOrders)
        Sets the output orders where input order items are moved to.
        Parameters:
        newOutOrders - OrderAccessBean[]
      • setToOrders

        public void setToOrders(java.lang.String[] newToOrders)
        Sets a destination order for the output order items. If this parameter is not specified, it means there is no output order. And the input order items will be simply removed from the source orders specified by the setFromOrders method.
        Specified by:
        setToOrders in interface OrderItemMoveCmd
        Parameters:
        newToOrders - String[]
      • setUrl

        public void setUrl(java.lang.String newUrl)
        Sets the URL to be redirected to when the command completes successfully.
        Specified by:
        setUrl in interface OrderItemMoveCmd
        Parameters:
        newUrl - String
      • setDoInventory

        public void setDoInventory(java.lang.String doInventory)
        This method sets the doInventory flag, this flag indicates if the inventory action should be done. "Y" indicates that the inventory action should be done. "N" indicates that the inventory action should not be done.
        Parameters:
        doInventory -
      • getDoInventory

        public java.lang.String getDoInventory()
        This method returns the doInventory flag, this flag indicates if the inventory action should be done. "Y" indicates that the inventory action should be done. "N" indicates that the inventory action should not be done.
        Returns:
        The value of the flag.
      • setContinue

        public void setContinue(java.lang.String astrContinue)
        Parameters:
        astrContinue - the continue parameter.