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

Class CSROrderCancelCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public java.lang.String xmlFile
        The xmlFile of the framework widget.
      • DIALOG_URL

        public static final java.lang.String DIALOG_URL
        The return url of a dialog widget.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CSROrderCancelCmdImpl

        public CSROrderCancelCmdImpl()
    • Method Detail

      • getEmailAddress

        public java.lang.String getEmailAddress()
        Gets the email address.
        Returns:
        The email address.
      • getNewComment

        public java.lang.String getNewComment()
        Gets the comment needed to add to the order.
        Returns:
        The order comment.
      • getNLS

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

        public java.util.Vector getOrderIds()
        Returns list of order IDs.
        Returns:
        The order IDs.
      • getOrgCmdContext

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

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

        public java.lang.String getSuccessMsg()
        Returns the successful message.
        Returns:
        The successful message.
      • getXmlFile

        public java.lang.String getXmlFile()
        Returns the XML file.
        Returns:
        The entire XML file.
      • isEmailError

        public boolean isEmailError()
        Returns if it is unable to send the email.
        Returns:
        True if the email has not been sent successfully.
      • isSendEmail

        public boolean isSendEmail()
        Returns if there is a need to send the comment to the email address.
        Returns:
        True if there is a need to send the comment to the email address.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution to cancel orders and add comment to the canceled 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 order can not be canceled.
      • setNewComment

        public void setNewComment(java.lang.String newNewComment)
        Sets the order comment.
        Parameters:
        newNewComment - The order comment.
      • setOrderIds

        public void setOrderIds(java.util.Vector newOrderIds)
        Sets Order IDs which needs to be canceled.
        Parameters:
        newOrderIds - The order IDs.
      • setRedirectURL

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

        public void setXmlFile(java.lang.String newXmlFile)
        Sets XML file.
        Parameters:
        newXmlFile - The XML file used.
      • getNotifyMerchant

        public java.lang.String getNotifyMerchant()
        Gets the notifyMerchant value to be used in AdminOrderCancelCmd.
        Returns:
        the notifyMerchant value. 1 will notify merchant; 0 will not. Default is 0.
      • setNotifyMerchant

        public void setNotifyMerchant(java.lang.String notifyMerchant)
        Sets the notifyMerchant value.
        Parameters:
        notifyMerchant - The notifyMerchant value.
      • getNotifyShopper

        public java.lang.String getNotifyShopper()
        Gets the notifyShopper value to be used in AdminOrderCancelCmd.
        Returns:
        the notifyShopper value. 1 will notify shopper; 0 will not. Default is 0.
      • setNotifyShopper

        public void setNotifyShopper(java.lang.String notifyShopper)
        Sets the notifyShopper value.
        Parameters:
        notifyShopper - The notifyShopper value.
      • isForcedCancel

        public boolean isForcedCancel()
        Gets the forcedCancel flag.
        Returns:
        forcedCancel boolean value.
      • setForcedCancel

        public void setForcedCancel(boolean aForcedCancel)
        Sets the forcedCancel flag.
        Parameters:
        aForcedCancel -