com.ibm.commerce.order.commands

Class OrderCreateQuoteCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderCreateQuoteCmd, 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
    Direct Known Subclasses:
    ExternalOrderCreateQuoteCmdImpl


    public class OrderCreateQuoteCmdImpl
    extends ControllerCommandImpl
    implements OrderCreateQuoteCmd
    This command is the default implementation of the OrderCreateQuote Command.

    Parameters

    orderId (mandatory)
    The Id of the order. This should be a number.
    sensitiveInfoCopy (optional)
    This flag indicates whether sensitive information such as payments information needs to be copied. ("Y/N")
    blockInfoCopy (optional)
    This flag indicates whether block information needs to be copied. ("Y/N")
    description (optional)
    Description of the quote to be created.
    URL (mandatory)
    The URL to be called when the command completes successfully.

    Behaviour

    The command does the following :

    1. Creates a Quote from an existing Order
    2. Calls OrderCopyCmd to copy the Order details and order items into the Quote
    3. Sets TYPE = QOT and STATUS = NEW for the new resulting Quote
    4. Resets PrepareFlags SKIP_REPRICING, SourceId if set for the Order.
      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

        • OrderCreateQuoteCmdImpl

          public OrderCreateQuoteCmdImpl()
      • Method Detail

        • getUrl

          public java.lang.String getUrl()
          Gets the URL.
          Returns:
          istrUrl URL in the request
        • setUrl

          public void setUrl(java.lang.String astrUrl)
          Sets the URL.
          Specified by:
          setUrl in interface OrderCreateQuoteCmd
          Parameters:
          astrUrl - URL in the request
        • setOrder

          public void setOrder(OrderAccessBean abOrder)
          Sets the Order to create Quote from. Adds it to the list of Orders to be processed
          Specified by:
          setOrder in interface OrderCreateQuoteCmd
          Parameters:
          abOrder - Order 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 OrderCreateQuoteCmd
          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 OrderCreateQuoteCmd
          Parameters:
          blInfoCopyFlag - block info copy flag
        • getDescription

          public java.lang.String getDescription()
          Gets the description of the Order to be generated from Quote.
          Returns:
          description of Order
        • setDescription

          public void setDescription(java.lang.String desc)
          Sets the description of the Order to be generated from Quote.
          Specified by:
          setDescription in interface OrderCreateQuoteCmd
          Parameters:
          desc - description of Order
        • getQuoteOrderId

          public java.lang.String getQuoteOrderId()
          Gets the Id of the Quote created from Order.
          Specified by:
          getQuoteOrderId in interface OrderCreateQuoteCmd
          Returns:
          Id of Quote
        • setQuoteOrderId

          public void setQuoteOrderId(java.lang.String qid)
          Sets the Id of the Quote created from Order.
          Parameters:
          qid - Id of Quote
        • checkInputOrderIdNumbers

          public void checkInputOrderIdNumbers()
                                        throws ECException
          Checks the OrderId parameters for Number format. Adds all valid Order Ids to ArrayList ivalidOrderNumbers
          Throws:
          ECException
        • setResponsePropertiesForCommand

          public void setResponsePropertiesForCommand()
          Sets the response properties for the command invoked.
        • checkUrl

          public void checkUrl()
                        throws ECException
          Checks for the existence of the URL parameter in the request.
          Throws:
          ECException
        • getCommit

          public boolean getCommit()
          Gets the commit flag.
          Returns:
          ibCommit Commit flag
        • setCommit

          public void setCommit(boolean commit)
          Sets the commit flag to control whether each quote is processed in a separate. database transaction
          Parameters:
          commit - Commit flag
        • reset

          public void reset()
          Resets the instance fields.
          Specified by:
          reset in interface com.ibm.websphere.command.Command
          Overrides:
          reset in class AbstractECTargetableCommand