com.ibm.commerce.inventory.commands

Class VendorCreateCmdImpl

    • Constructor Detail

      • VendorCreateCmdImpl

        public VendorCreateCmdImpl()
    • Method Detail

      • setAddress1

        public void setAddress1(java.lang.String newAddress1)
        Set vendor address line 1.
        Specified by:
        setAddress1 in interface VendorCreateCmd
        Parameters:
        newAddress1 - java.lang.String
      • setAddress2

        public void setAddress2(java.lang.String newAddress2)
        Set vendor address line 2.
        Specified by:
        setAddress2 in interface VendorCreateCmd
        Parameters:
        newAddress2 - java.lang.String
      • setAddress3

        public void setAddress3(java.lang.String newAddress3)
        Set vendor address line 3.
        Specified by:
        setAddress3 in interface VendorCreateCmd
        Parameters:
        newAddress3 - java.lang.String
      • setBusinessTitle

        public void setBusinessTitle(java.lang.String newBusinessTitle)
        Set the business title.
        Specified by:
        setBusinessTitle in interface VendorCreateCmd
        Parameters:
        newBusinessTitle - java.lang.String
      • setCity

        public void setCity(java.lang.String newCity)
        Set the city within this address.
        Specified by:
        setCity in interface VendorCreateCmd
        Parameters:
        newCity - java.lang.String
      • setCountry

        public void setCountry(java.lang.String newCountry)
        Set the country or region within this address.
        Specified by:
        setCountry in interface VendorCreateCmd
        Parameters:
        newCountry - java.lang.String
      • setDescription

        public void setDescription(java.lang.String newDescription)
        Set the description of the vendor.
        Specified by:
        setDescription in interface VendorCreateCmd
        Parameters:
        newDescription - java.lang.String
      • setEmail1

        public void setEmail1(java.lang.String newEmail1)
        Set the primary e-mail address.
        Specified by:
        setEmail1 in interface VendorCreateCmd
        Parameters:
        newEmail1 - java.lang.String
      • setFax1

        public void setFax1(java.lang.String newFax1)
        Set the primary fax number.
        Specified by:
        setFax1 in interface VendorCreateCmd
        Parameters:
        newFax1 - java.lang.String
      • setFirstName

        public void setFirstName(java.lang.String newFirstName)
        Set the first name for the contact person.
        Specified by:
        setFirstName in interface VendorCreateCmd
        Parameters:
        newFirstName - java.lang.String
      • setLanguageId

        public void setLanguageId(java.lang.String newLanguageId)
        Set the language identifier.
        Parameters:
        newLanguageId - java.lang.String
      • setLastName

        public void setLastName(java.lang.String newLastName)
        Set the last name for the contact person.
        Specified by:
        setLastName in interface VendorCreateCmd
        Parameters:
        newLastName - java.lang.String
      • setMiddleName

        public void setMiddleName(java.lang.String newMiddleName)
        Set the middle name for the contact person.
        Specified by:
        setMiddleName in interface VendorCreateCmd
        Parameters:
        newMiddleName - java.lang.String
      • setPersonTitle

        public void setPersonTitle(java.lang.String newPersonTitle)
        Set the business title for the contact person.
        Specified by:
        setPersonTitle in interface VendorCreateCmd
        Parameters:
        newPersonTitle - java.lang.String
      • setPhone1

        public void setPhone1(java.lang.String newPhone1)
        Set the primary phone number.
        Specified by:
        setPhone1 in interface VendorCreateCmd
        Parameters:
        newPhone1 - java.lang.String
      • setState

        public void setState(java.lang.String newState)
        Set the state within this address.
        Specified by:
        setState in interface VendorCreateCmd
        Parameters:
        newState - java.lang.String
      • setVendorName

        public void setVendorName(java.lang.String newVendorName)
        Set the vendor name.
        Specified by:
        setVendorName in interface VendorCreateCmd
        Parameters:
        newVendorName - java.lang.String
      • setZipCode

        public void setZipCode(java.lang.String newZipCode)
        Set the ZIP code within this address.
        Specified by:
        setZipCode in interface VendorCreateCmd
        Parameters:
        newZipCode - java.lang.String
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method gets the information of the new vendor to be created and sets the information into the command local variable. It also sets the success redirect URL.

        Exception:

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECApplicationException. - If the XMLObject cannot be parsed as expected, throw ECApplicationException.
        ECException