com.ibm.commerce.rfq.commands

Class RFQItemAddCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String MADE_TO_ORDER_ITEM
        This is the value of catalog entry that means a made to order item.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RFQItemAddCmdImpl

        public RFQItemAddCmdImpl()
    • Method Detail

      • reset

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

        public void performExecute()
                            throws ECException
        Add the item to the RFQ.

        Behaviour

        • Checks if the RFQ is in the draft state.
        • Calls CreateRFQCatentryRel to add the item to the RFQ.
          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()
        • determineCatentryType

          public java.lang.String determineCatentryType(java.lang.Long catentryId)
                                                 throws ECException
          Determines the type of a given catalog entry.
          Parameters:
          catentryId - The catalog entry identifier.
          Returns:
          The String Catentry Type
          Throws:
          ECException
        • getRFQId

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

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

          public void setRequestProperties(TypedProperty requestProperties)
                                    throws ECException
          Retrieves the identifier of the RFQ, catentries, and currency.
          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 - Any missing parameters will generate an ECApplicationException exception.
          See Also:
          ControllerCmd#setRequestProperties(TypedProperty)
        • getProdList

          public java.lang.Long[] getProdList()
          Gets the productList
          Returns:
          Returns a java.lang.Long[]
        • setProdList

          public void setProdList(java.lang.Long[] thisproductList)
          Sets the prodList
          Parameters:
          prodList - The prodList to set
        • getCurrency

          public java.lang.String getCurrency()
          Gets the currency
          Returns:
          Returns a String
        • setCurrency

          public void setCurrency(java.lang.String thiscurrencyId)
          Sets the currency
          Parameters:
          currency - The currency to set
        • getErrorContent

          public java.util.Hashtable getErrorContent()
          Gets the error content
          Returns:
          Returns a java.util.Hashtable