com.ibm.commerce.quote.commands

Class QuoteSaveCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, QuoteSaveCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class QuoteSaveCmdImpl
    extends com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
    implements QuoteSaveCmd
    This is the default implementation of the QuoteSaveCmd controller Command.

    Behaviour

    1. If QuoteGoodFor period of the quote has expired, or the quote is not locked, then the QuotePrepareCmd is called.
    2. Sets status of quote to RDY.
    3. Calls the SetQuoteExpireDateCmd to set the expiry date for the quote.
    4. Uses the OrderAccessBean to save the quote.
      See Also:
      Serialized Form
      • Field Detail

        • COPYRIGHT

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

        • QuoteSaveCmdImpl

          public QuoteSaveCmdImpl()
      • Method Detail

        • setQuote

          public void setQuote(OrderAccessBean abQuote)
          Sets the quote to be saved and adds it to the list of quotes to be processed.
          Specified by:
          setQuote in interface QuoteSaveCmd
          Parameters:
          abQuote - Quote access bean.
        • setQuoteExpirePeriod

          public void setQuoteExpirePeriod(java.lang.Long expirePeriodTime)
          Sets the expiry period for the quote.
          Specified by:
          setQuoteExpirePeriod in interface QuoteSaveCmd
          Parameters:
          expirePeriodTime - expirePeriod Expire Period for the Quote
        • setQuoteExpireDate

          public void setQuoteExpireDate(java.sql.Timestamp expDate)
          Sets the expiry date for the quote.
          Specified by:
          setQuoteExpireDate in interface QuoteSaveCmd
          Parameters:
          expDate - Expire Date for the Quote
        • getExpirePeriod

          public java.lang.Long getExpirePeriod()
          Gets the expiry period for the quote.
          Returns:
          Expire Period
        • getExpireDate

          public java.sql.Timestamp getExpireDate()
          Gets the expiry date for the quote.
          Returns:
          Expire Date
        • performExecute

          public void performExecute()
                              throws ECException
          Performs the main business logic.
          Specified by:
          performExecute in interface ECCommand
          Specified by:
          performExecute in interface com.ibm.websphere.command.TargetableCommand
          Specified by:
          performExecute in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
          Throws:
          ECException
          See Also:
          SetQuoteExpireDateCmd
        • setRequestProperties

          public void setRequestProperties(TypedProperty aReqParms)
                                    throws ECException
          Sets the request properties of this command implementation.
          Specified by:
          setRequestProperties in interface ControllerCommand
          Overrides:
          setRequestProperties in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
          Parameters:
          aReqParms - the request properties
          Throws:
          ECException
        • reset

          public void reset()
          Resets the command.
          Specified by:
          reset in interface com.ibm.websphere.command.Command
          Overrides:
          reset in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
          See Also:
          Command.reset()