com.ibm.commerce.quote.commands

Class QuoteCreateCmdImpl

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

    Behaviour

    1. Calls the CreateQuoteCmd task command to perform the actual quote create operation.
    2. Stores the quote in an OrderAccessBean and returns the orderId of the quote in a response.
      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

        • QuoteCreateCmdImpl

          public QuoteCreateCmdImpl()
      • Method Detail

        • getOrderId

          public java.lang.String getOrderId()
          Returns the orderId of the quote that was created.
          Specified by:
          getOrderId in interface QuoteCreateCmd
          Returns:
          orderId the orderId of the created Quote.
        • getOutputQuoteName

          public java.lang.String getOutputQuoteName()
          Returns the name of the quote as the output.
          Returns:
          outputQuoteName Quote Name to be output.
        • setOutputQuoteName

          public void setOutputQuoteName(java.lang.String name)
          Sets the name of the quote as the output.
          Specified by:
          setOutputQuoteName in interface QuoteCreateCmd
          Parameters:
          name - Quote Name to be output
        • getDescription

          public java.lang.String getDescription()
          Returns the description of the quote.
          Returns:
          istrDescription the quote description
        • setDescription

          public void setDescription(java.lang.String description)
          Sets the description of the quote.
          Specified by:
          setDescription in interface QuoteCreateCmd
          Parameters:
          description - the quote description
        • 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:
          CreateQuoteCmd
        • validateParameters

          public void validateParameters()
                                  throws ECException
          Validates request parameters. Overrides the base validateParameters to do nothing.
          Specified by:
          validateParameters in interface ECCommand
          Overrides:
          validateParameters in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
          Throws:
          ECException