com.ibm.commerce.rfq.commands

Class RFQTargetListRemoveCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • RFQTargetListRemoveCmdImpl

        public RFQTargetListRemoveCmdImpl()
    • Method Detail

      • reset

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

        public void validateParameters()
                                throws ECException
        Checks for a valid RFQ and store 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 a store Id has been specified.
        4. Checks if the specified store Id is valid.

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

        public void performExecute()
                            throws ECException
        Submits the RFQ.

        Behaviour

        • Checks if the RFQ is in the draft state.
        • Calls RemoveTargetListCmdto remove the store from the target list.
          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()
        • getRfqId

          public java.lang.Long getRfqId()
          Gets the rfqId
          Returns:
          Returns a java.lang.Long
        • setRfqId

          public void setRfqId(java.lang.Long rfqId)
          Sets the rfqId
          Parameters:
          rfqId - The rfqId to set
        • getTargetStoreId

          public java.lang.Integer getTargetStoreId()
          Gets the targetStoreId
          Returns:
          Returns a java.lang.Integer
        • setTargetStoreId

          public void setTargetStoreId(java.lang.Integer targetStoreId)
          Sets the targetStoreId
          Parameters:
          targetStoreId - The targetStoreId to set