com.ibm.commerce.rfq.commands

Class RFQCategoryAddCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • RFQCategoryAddCmdImpl

        public RFQCategoryAddCmdImpl()
    • Method Detail

      • reset

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

        public java.util.Hashtable getErrorContent()
        Gets the errorContent
        Returns:
        Returns a java.util.Hashtable
      • getRFQId

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

        public void performExecute()
                            throws ECException
        Create a new category to the RFQ.

        Behaviour

        • Checks if the RFQ is in the draft state.
        • Creates a new category.
          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.
        • setRequestProperties

          public void setRequestProperties(TypedProperty requestProperties)
                                    throws ECException
          Retrieves the identifier of the RFQ, categoryName.
          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)