com.ibm.commerce.rfq.commands

Class RFQAttachmentDescUpdateCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • RFQAttachmentDescUpdateCmdImpl

        public RFQAttachmentDescUpdateCmdImpl()
    • Method Detail

      • reset

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

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

        public void performExecute()
                            throws ECException
        Delete the attachment from the RFQ

        Behaviour

        • Delete the RFQ and the attachment relationship.
        • Mark for delete the attachment.
          Specified by:
          performExecute in interface ECCommand
          Specified by:
          performExecute in interface com.ibm.websphere.command.TargetableCommand
          Overrides:
          performExecute in class AbstractECTargetableCommand
          Throws:
          ECException
          See Also:
          ECCommand#performExecute()
        • setRequestProperties

          public void setRequestProperties(TypedProperty requestProperties)
                                    throws ECException
          Retrieves the identifier of the RFQ and Attachment that are to be deleted.
          The WebController calls the setRequestProperties method before invoking the execute method in this command.
          Specified by:
          setRequestProperties in interface ControllerCommand
          Overrides:
          setRequestProperties in class ControllerCommandImpl
          Parameters:
          requestProperties - com.ibm.commerce.datatype.TypedProperty
          Throws:
          ECException
          See Also:
          ControllerCmd#setRequestProperties(TypedProperty)
        • 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.
        • validateParameters

          public void validateParameters()
                                  throws ECException
          Checks for a valid RFQ and attachment identifier.
          This method does the following:
          1. Checks if an RFQ Id has been specified.
          2. Checks if the specified RFQ Id is valid.
          3. Checks if an Attachment Id has been specified.
          4. Checks if the specified attachment Id is valid.

          Specified by:
          validateParameters in interface ECCommand
          Overrides:
          validateParameters in class AbstractECTargetableCommand
          Throws:
          ECException
          See Also:
          ECCommand#validateParameters()