com.ibm.commerce.tools.optools.order.commands

Class CSROrderItemDeleteCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static java.lang.String ERRTASK_NAME
        Error handling view name for this command.
    • Constructor Detail

      • CSROrderItemDeleteCmdImpl

        public CSROrderItemDeleteCmdImpl()
    • Method Detail

      • getDeleteItems

        public java.util.Vector getDeleteItems()
        Gets the items to be deleted.
        Returns:
        The vector containing the items to be deleted to the order.
      • getFirstOrderId

        public java.lang.String getFirstOrderId()
        Gets the first order ID.
        Returns:
        The first order ID.
      • getItems

        public java.util.Vector getItems()
        Gets the items in the order.
        Returns:
        The vector that contains the items in the order.
      • getNLS

        public java.util.Hashtable getNLS()
        Returns NLS properties.
        Returns:
        The NLS properties.
      • getOrderId

        public java.lang.String getOrderId()
        Gets the order ID for which the items are to be deleted.
        Returns:
        The order ID.
      • getOrgCmdContext

        public CommandContext getOrgCmdContext()
        Gets the original command context.
        Returns:
        The original command context.
      • getOrgReqProperties

        public TypedProperty getOrgReqProperties()
        Gets the original request properties.
        Returns:
        The original request properties.
      • getRedirectURL

        public java.lang.String getRedirectURL()
        Gets the redirect URL
        Returns:
        The redirect URL
      • getSecondOrderId

        public java.lang.String getSecondOrderId()
        Gets the second order ID.
        Returns:
        The second order ID.
      • getShopperId

        public java.lang.String getShopperId()
        Gets the shopper ID for which the order is to be added.
        Returns:
        The shopper ID.
      • performExecute

        public void performExecute()
                            throws ECException
        This method deletes items from the order.

        It first calls the callPreCommands method in the super class to execute all pre-commands and then calls the executeOrderItemDelete method to delete items from the orders.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if orders can not be prepared.
      • setDeleteItems

        public void setDeleteItems(java.util.Vector newDeleteItems)
        Sets the items to be deleted from the order.
        Parameters:
        newDeleteItems - The vector of items to be deleted from the order.
      • setFirstOrderId

        public void setFirstOrderId(java.lang.String newFirstOrderId)
        Sets the first order ID.
        Parameters:
        newFirstOrderId - The first order ID.
      • setItems

        public void setItems(java.util.Vector newItems)
        Sets the items of the order.
        Parameters:
        newItems - The vector of items in the order.
      • setOrderId

        public void setOrderId(java.lang.String newOrderId)
        Sets the order ID into which the items are added.
        Parameters:
        newOrderId - The order ID.
      • setOrgCmdContext

        public void setOrgCmdContext(CommandContext newOrgCmdContext)
        Sets the original command context.
        Parameters:
        newOrgCmdContext - The original command context.
      • setOrgReqProperties

        public void setOrgReqProperties(TypedProperty newOrgReqProperties)
        Sets the original request properties.
        Parameters:
        newOrgReqProperties - The original request properties.
      • setRedirectURL

        public void setRedirectURL(java.lang.String newRedirectURL)
        Sets the redirect URL.
        Parameters:
        newRedirectURL - The redirect URL.
      • setSecondOrderId

        public void setSecondOrderId(java.lang.String newSecondOrderId)
        Sets the second order ID.
        Parameters:
        newSecondOrderId - The second order ID.
      • setShopperId

        public void setShopperId(java.lang.String newShopperId)
        Sets the shopper ID for which the items are deleted.
        Parameters:
        newShopperId - The shopper ID.