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

Class CSROrderCommentsAddCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • CSROrderCommentsAddCmdImpl

        public CSROrderCommentsAddCmdImpl()
        CSROrderCommentsAddCmdImpl constructor.
    • Method Detail

      • callCSROrderCommentsNotifyCmd

        public void callCSROrderCommentsNotifyCmd(java.lang.Long orderId)
                                           throws ECException
        Calls CSROrderCommentsNotify command to send comment to a specified email address.
        Parameters:
        orderId - The order ID.
        Throws:
        ECException - if the comment can not be sent.
      • getInComment

        public java.lang.String getInComment()
        Returns the order comment.
        Returns:
        The order comment.
      • getIsNotifyShopper

        public java.lang.String getIsNotifyShopper()
        Returns the flag to indicate if there is a need to send the comment to the email address.
        Returns:
        "true" if there is a need to send the comment.
      • getNLS

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

        public java.lang.Long[] getOrderIds()
        Returns the list of orders IDs which need to be added the order comments.
        Returns:
        The order IDs.
      • getOrgCmdContext

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

        public java.lang.String getXmlfile()
        Return the XML file.
        Returns:
        The entire XML file.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution to add comment to orders. If the flag to indicate sending email is set, it will also send the order comment to the email address specified.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if comment can not be sent.
      • setInComment

        public void setInComment(java.lang.String newInComment)
        Set order comment.
        Parameters:
        newInComment - The order comment.
      • setIsNotifyShopper

        public void setIsNotifyShopper(java.lang.String notifyShopper)
        Set the flag to indicate if the order comment needs to be emailed.
        Parameters:
        notifyShopper - The flag to indicate if the order comment needs to be emailed.
      • setOrderIds

        public void setOrderIds(java.lang.Long[] newOrderIds)
        Set Order IDs which needs to be canceled.
        Parameters:
        newOrderIds - The order IDs.
      • setReceiverEmailAddress

        public void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
        Set the email address.
        Parameters:
        newReceiverEmailAddr - The email address.