com.ibm.commerce.quote.commands

Class QuoteCopyCmdImpl

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

    Behaviour

    1. Creates a new quote container using the CreateQuoteCmd.
    2. Calls the CopyQuoteCmd to perform the actual copy from the specified quote into the new 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

        • QuoteCopyCmdImpl

          public QuoteCopyCmdImpl()
      • Method Detail

        • setQuote

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

          public java.lang.String getSensitiveInfoCopyFlag()
          Gets the sensitive info copy flag.
          Returns:
          sensitive info copy flag
        • setSensitiveInfoCopyFlag

          public void setSensitiveInfoCopyFlag(java.lang.String senInfoCopyFlag)
          Sets the sensitive info copy flag.
          Specified by:
          setSensitiveInfoCopyFlag in interface QuoteCopyCmd
          Parameters:
          senInfoCopyFlag - sensitive info copy flag
        • getBlockInfoCopyFlag

          public java.lang.String getBlockInfoCopyFlag()
          Gets the block info copy flag.
          Returns:
          block info copy flag
        • setBlockInfoCopyFlag

          public void setBlockInfoCopyFlag(java.lang.String blInfoCopyFlag)
          Sets the block info copy flag.
          Specified by:
          setBlockInfoCopyFlag in interface QuoteCopyCmd
          Parameters:
          blInfoCopyFlag - block info copy flag
        • getDescription

          public java.lang.String getDescription()
          Gets the description of the quote that results from QuoteCopy.
          Returns:
          description of Order
        • setDescription

          public void setDescription(java.lang.String desc)
          Sets the description of the quote that results from QuoteCopy.
          Specified by:
          setDescription in interface QuoteCopyCmd
          Parameters:
          desc - description of Order
        • getToQuote

          public OrderAccessBean getToQuote()
          Gets the quote access bean that has been copied.
          Specified by:
          getToQuote in interface QuoteCopyCmd
          Returns:
          toQuoteAB Quote access bean that has been copied to
        • 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
        • 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