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

Class CSROrderItemAddCmdImpl

    • 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

      • CSROrderItemAddCmdImpl

        public CSROrderItemAddCmdImpl()
    • Method Detail

      • executeCSROrderStatusChange

        public void executeCSROrderStatusChange(java.lang.String theOrderId,
                                                java.lang.String newStatus)
                                         throws ECException
        Call CSROrderStatusChange command to change the status of the order and its order items.
        Parameters:
        newStatus - The status of the order and its order items.
        theOrderId - The ID of the order.
        Throws:
        ECException - if order status can not be changed.
      • getAddItems

        public java.util.Vector getAddItems()
        Gets the items to be added.
        Returns:
        The vector containing the items to be added to the order.
      • getAddressId

        public java.lang.String getAddressId()
        Gets the address ID for which the order item is to be added.
        Returns:
        The address 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 added.
        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.
      • getShipModeId

        public java.lang.String getShipModeId()
        Gets the shipping mode ID for which the order item is to be added.
        Returns:
        The shipping mode ID.
      • getShopperId

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

        public void setAddItems(java.util.Vector newAddItems)
        Sets the items to be added to the order.
        Parameters:
        newAddItems - The vector of items to be added to the order.
      • setAddressId

        public void setAddressId(java.lang.String newAddressId)
        Sets the address ID for which the items are to be added.
        Parameters:
        newAddressId - The address 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.
      • setShipModeId

        public void setShipModeId(java.lang.String newShipModeId)
        Sets the shipping mode ID for which the items are added.
        Parameters:
        newShipModeId - The shipping mode ID.
      • setShopperId

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

        public java.lang.Long getActiveOrganizationId()
        Get the organization id that the customer is shopping under.
        Returns:
        the organization id that the customer is shopping under.
      • setActiveOrganizationId

        public void setActiveOrganizationId(java.lang.Long long1)
        Set the active organization id for this command.
        Parameters:
        long1 - the organization id that the customer is shopping under.