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

Class CSROrderProcessCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String NOTEBOOK_URL
        The return url for a notebook widget.
        See Also:
        Constant Field Values
      • WIZARD_URL

        public static final java.lang.String WIZARD_URL
        The return url for a wizard widget.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CSROrderProcessCmdImpl

        public CSROrderProcessCmdImpl()
    • Method Detail

      • getAdminId

        public java.lang.String getAdminId()
        Returns the administrator's ID.
        Returns:
        The administrator's ID that is performing the action on behalf of the customer.
      • getBackupOrderId

        public java.lang.String getBackupOrderId()
        Returns backup order ID.
        Returns:
        The backup order ID created for this order.
      • getComment

        public java.util.Hashtable getComment()
        Returns comment as a Hashtable.
        Returns:
        The comment name-value pair with the comment details.
      • getCustomerId

        public java.lang.String getCustomerId()
        Returns customer ID.
        Returns:
        The customer's ID.
      • getEditOrderInfo

        public java.lang.String getEditOrderInfo()
        Returns "true" if it is called from an edit order notebook.
        Returns:
        "true" if it is called from an edit order notebook; "false" otherwise.
      • getFirstBillingAddressId

        public java.lang.String getFirstBillingAddressId()
        Returns first billing address ID.
        Returns:
        The billing address ID for the first order.
      • getFirstDirtyBit

        public java.lang.String getFirstDirtyBit()
        Returns the first order dirty status.
        Returns:
        Return String "true" if there are some adjustments for the first order, "false" if not.
      • getFirstOrderId

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

        public java.util.Hashtable getFirstPayment()
        Returns the payment information for the first order as a Hashtable.
        Returns:
        The name-value pairs containing the payment information for the first order.
      • getNLS

        public java.util.Hashtable getNLS()
        Returns the properties containing all translatable messages for this command.
        Returns:
        Name value pairs of translatable messages.
      • getOrgCmdContext

        public CommandContext getOrgCmdContext()
        Returns the original commandContext (administrator's command context).
        Returns:
        The original command context when calling this command.
      • 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 the redirect URL that is to be executed after this controller command terminates.
        Returns:
        The name of the view to be redirected to.
      • getSecondBillingAddressId

        public java.lang.String getSecondBillingAddressId()
        Returns second billing address ID.
        Returns:
        The billing address ID for the second order.
      • getSecondOrderId

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

        public java.util.Hashtable getSecondPayment()
        Returns the payment information for the second order as a Hashtable.
        Returns:
        The name-value pairs containing the payment information for the second order.
      • getXMLFile

        public java.lang.String getXMLFile()
        Returns XML file.
        Returns:
        The entire XML file.
      • isBackupOrderDeleteError

        public boolean isBackupOrderDeleteError()
        Returns error flag for deleting backup order error.
        Returns:
        true if there is an error to delete a backup order.
      • isEmailError

        public boolean isEmailError()
        Returns error flag for email comment error.
        Returns:
        true if there is an email error.
      • isFirstOrderExist

        public boolean isFirstOrderExist()
        Returns true if the first order exits.
        Returns:
        Return true if the first order exists (that is has order items).
      • isSecondOrderExist

        public boolean isSecondOrderExist()
        Returns true if the Second order exits.
        Returns:
        Return true if the second order exists (that is has order items).
      • getNotifyMerchant

        public java.lang.String getNotifyMerchant()
        Gets notify merchant option.
        Returns:
        notify merchant option.
      • setNotifyMerchant

        public void setNotifyMerchant(java.lang.String notifyMerchant)
        Sets notify merchant option.
        Parameters:
        notifyMerchant - "1" to notify merchant; "0" not to notify merchant.
      • getNotifyShopper

        public java.lang.String getNotifyShopper()
        Gets notify customer option.
        Returns:
        notify shopper option.
      • setNotifyShopper

        public void setNotifyShopper(java.lang.String notifyShopper)
        Sets notify customer option.
        Parameters:
        notifyShopper - "1" to notify customer; "0" not to notify customer.
      • getNotifyOrderSubmitted

        public java.lang.String getNotifyOrderSubmitted()
        Gets order submitted notification option.
        Returns:
        Returns a java.lang.String
      • setNotifyOrderSubmitted

        public void setNotifyOrderSubmitted(java.lang.String notifyOrderSubmitted)
        Sets order submitted notification option.
        Parameters:
        notifyOrderSubmitted - "1" to notify order submission; "0" not to notify order submission.
      • getPoNumber

        public java.lang.String getPoNumber()
        Get the PO number
        Returns:
        PO number
      • setPoNumber

        public void setPoNumber(java.lang.String string)
        Set the PO number
        Parameters:
        string - PO number
      • reset

        public void reset()
        This method should be called after a command has been executed to reset its states variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand