com.ibm.commerce.quote.commands

Class QuoteDisplayCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, QuoteDisplayCmd, 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 QuoteDisplayCmdImpl
    extends com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
    implements QuoteDisplayCmd
    This is the default implementation of the QuoteDisplayCmd controller Command.

    Behaviour

    1. Calls the QuotePrepareCmd for any quote that is unlocked.
    2. Adds the list of quotes to be displayed to the response.
    3. Uses the OrderAccessBean to process the quotes.
      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

        • QuoteDisplayCmdImpl

          public QuoteDisplayCmdImpl()
      • Method Detail

        • setQuote

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

          public java.util.ArrayList getUnlockedQuotes()
          Gets the unlocked quote access beans to prepare.
          Returns:
          List of Quotes access beans
        • setUnlockedQuotes

          public void setUnlockedQuotes(java.util.ArrayList newQuotes)
          Sets the unlocked quote access beans to prepare.
          Parameters:
          newQuotes - Quote AccessBeans
        • performExecute

          public void performExecute()
                              throws ECException
          Performs the main business logic. First retrieves the set of unlocked quotes from the specified list. Then invokes QuotePrepare on this set of unlocked quotes. Adds all the specified Ids of the quotes to the response.
          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