com.ibm.commerce.quote.commands

Interface QuoteSaveCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    QuoteSaveCmdImpl


    public interface QuoteSaveCmd
    extends ControllerCommand
    This Order controller command is used to save a quote after all the updates are complete. It calls the PrepareQuoteCmd command if either the quote is unlocked or the QuoteGoodFor period has expired. Sets the STATUS = RDY for the quote and calls the SetQuoteExpireDateCmd command to determine the expiry date of the quote.

    Parameters

    orderId (mandatory)
    The Id of the quote. This must be a number.
    URL (mandatory)
    The URL to be called when the command completes successfully.
    expireDate (optional)
    The expiry date of the quote. This takes precedence over all possible expiry dates for the quote.
    expirePeriod (optional)
    The expiry period using which the expiry date for a quote can be calculated. This has lower precedence than the expireDate parameter, but higher precedence over the store-based expiry period parameter.
    The default implementation of this command is <>. The <> URL is mapped to this command by default.
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String NAME
        The name of this interface. "com.ibm.commerce.quote.commands.QuoteSaveCmd".
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values
    • Method Detail

      • setUrl

        void setUrl(java.lang.String url)
        Sets the redirection URL after the command completes successfully.
        Parameters:
        url -
      • setQuote

        void setQuote(OrderAccessBean abQuote)
        Sets the quote to save.
        Parameters:
        abQuote - Quote access bean
      • setQuoteExpireDate

        void setQuoteExpireDate(java.sql.Timestamp expirePeriod)
        Sets the expiry date for the quote.
        Parameters:
        expirePeriod - Expire Date for the Quote
      • setQuoteExpirePeriod

        void setQuoteExpirePeriod(java.lang.Long expirePeriod)
        Sets the expiry period for the quote.
        Parameters:
        expirePeriod - Expire Period for the Quote