com.ibm.commerce.rfq.commands

Class RFQTargetListAddCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • RFQTargetListAddCmdImpl

        public RFQTargetListAddCmdImpl()
    • 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 Ids has been specified.
        4. Checks if the specified store Ids are valid.

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

        public void performExecute()
                            throws ECException
        Add the store to the target list.

        Behaviour

        • Checks if the RFQ is in the draft state.
        • Calls AddTargetListCmd to add the store to 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
        • getTargetStoreIds

          public java.lang.Integer[] getTargetStoreIds()
          Returns the targetStoreIds.
          Returns:
          Integer[]
        • setTargetStoreIds

          public void setTargetStoreIds(java.lang.Integer[] targetStoreIds)
          Sets the targetStoreIds.
          Parameters:
          targetStoreIds - The targetStoreIds to set
        • setTargetOrgIds

          public void setTargetOrgIds(java.lang.Long[] targetOrgIds)
          Sets the targetStoreIds.
          Parameters:
          targetStoreIds - The targetStoreIds to set