com.ibm.commerce.utf.commands

Class RFQSubmitCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • RFQSubmitCmdImpl

        public RFQSubmitCmdImpl()
    • Method Detail

      • reset

        public void reset()
        Reset the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • doAcknowledgment

        public void doAcknowledgment()
                              throws ECException
        Composes and sends out the response to the browser.
        Throws:
        ECException
      • getErrorContent

        public java.util.Hashtable getErrorContent()
        Returns the errorContent hashtable
        Returns:
        The hashtable containing error codes.
      • getRFQId

        public java.lang.Long getRFQId()
        Returns the RFQ Id.
        Returns:
        The RFQ identifier.
      • performExecute

        public void performExecute()
                            throws ECException
        Submits the RFQ.

        Behaviour

        • Checks if the RFQ is in the draft state.
        • Checks that the RFQ contains at least one product or category.
        • Sets the state of the RFQ to active or future depending on the RFQ start time.
        • Sets the activate times for the RFQ to the current time. In case, no start time had been specified for the RFQ, sets the RFQ start time also to the current time.
          Specified by:
          performExecute in interface ECCommand
          Specified by:
          performExecute in interface com.ibm.websphere.command.TargetableCommand
          Overrides:
          performExecute in class AbstractECTargetableCommand
          Throws:
          ECException.
          ECException
          See Also:
          ECCommand#performExecute()
        • setErrorContent

          public void setErrorContent(java.util.Hashtable newErrorContent)
          Copies the incoming hashtable into a member variable.
          Parameters:
          newErrorContent - The incoming hashtable containing errorcodes.
        • setRFQId

          public void setRFQId(java.lang.Long newRFQ)
          Sets the value of the member variable, rfqId, to the incoming value.
          Parameters:
          newRFQ - The incoming value for an RFQ identifier.