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

Class CSROrderItemSplitCmdImpl

    • 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

      • CSROrderItemSplitCmdImpl

        public CSROrderItemSplitCmdImpl()
    • Method Detail

      • executeCSROrderStatusChange

        public void executeCSROrderStatusChange(java.lang.String theOrderId,
                                                java.lang.String newStatus)
                                         throws ECException
        Calls CSROrderStatusChangeCmd 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 unable to change status of the order and its items.
      • getCustomerId

        public java.lang.String getCustomerId()
        Returns customer ID.
        Returns:
        The customer ID.
      • getFromOrderId

        public java.lang.String getFromOrderId()
        Returns the ID of the order which the order items are moved from.
        Returns:
        The ID of the order which the order items are moved from.
      • getNewOrderId

        public java.lang.String getNewOrderId()
        Returns the ID of the newly created order.
        Returns:
        The ID of the newly created order.
      • getNLS

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

        public java.util.Vector getOrderItems()
        Returns a vector of order items to be moved.
        Returns:
        The order items to be moved.
      • getOrgCmdContext

        public CommandContext getOrgCmdContext()
        Returns original command context.
        Returns:
        The command context.
      • getOrgLangId

        public java.lang.Integer getOrgLangId()
        Returns original language ID.
        Returns:
        The original language ID.
      • getOrgLocale

        public java.util.Locale getOrgLocale()
        Returns original locale.
        Returns:
        The original locale.
      • getOrgReqProperties

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

        public java.lang.String getRedirectURL()
        Returns redirect URL.
        Returns:
        The redirect URL.
      • getToOrderId

        public java.lang.String getToOrderId()
        Returns ID of the order which the order items will be moved to.
        Returns:
        The ID of the order which the order items will be moved to.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution of moving the order items from one order to another order.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if unable to move items from one order to the other.