com.ibm.commerce.inventory.commands

Class VendorUpdateCmdImpl

    • Constructor Detail

      • VendorUpdateCmdImpl

        public VendorUpdateCmdImpl()
    • Method Detail

      • setAddress1

        public void setAddress1(java.lang.String newAddress1)
        Set vendor address line 1.

        Specified by:
        setAddress1 in interface VendorUpdateCmd
        Parameters:
        newAddress1 - java.lang.String
      • setAddress2

        public void setAddress2(java.lang.String newAddress2)
        Set vendor address line 2.

        Specified by:
        setAddress2 in interface VendorUpdateCmd
        Parameters:
        newAddress2 - java.lang.String
      • setAddress3

        public void setAddress3(java.lang.String newAddress3)
        Set vendor address line 3.

        Specified by:
        setAddress3 in interface VendorUpdateCmd
        Parameters:
        newAddress3 - java.lang.String
      • setBusinessTitle

        public void setBusinessTitle(java.lang.String newBusinessTitle)
        Set the business title.

        Specified by:
        setBusinessTitle in interface VendorUpdateCmd
        Parameters:
        newBusinessTitle - java.lang.String
      • setCity

        public void setCity(java.lang.String newCity)
        Set the city within this address.

        Specified by:
        setCity in interface VendorUpdateCmd
        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 VendorUpdateCmd
        Parameters:
        newCountry - java.lang.String
      • setDescription

        public void setDescription(java.lang.String newDescription)
        Set the description of the vendor.

        Specified by:
        setDescription in interface VendorUpdateCmd
        Parameters:
        newDescription - java.lang.String
      • setEmail1

        public void setEmail1(java.lang.String newEmail1)
        Set the primary e-mail address.

        Specified by:
        setEmail1 in interface VendorUpdateCmd
        Parameters:
        newEmail1 - java.lang.String
      • setFax1

        public void setFax1(java.lang.String newFax1)
        Set the primary fax number.

        Specified by:
        setFax1 in interface VendorUpdateCmd
        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 VendorUpdateCmd
        Parameters:
        newFirstName - java.lang.String
      • setLastName

        public void setLastName(java.lang.String newLastName)
        Set the last name for the contact person.

        Specified by:
        setLastName in interface VendorUpdateCmd
        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 VendorUpdateCmd
        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 VendorUpdateCmd
        Parameters:
        newPersonTitle - java.lang.String
      • setPhone1

        public void setPhone1(java.lang.String newPhone1)
        Set the primary phone number.

        Specified by:
        setPhone1 in interface VendorUpdateCmd
        Parameters:
        newPhone1 - java.lang.String
      • setState

        public void setState(java.lang.String newState)
        Set the state within this address.

        Specified by:
        setState in interface VendorUpdateCmd
        Parameters:
        newState - java.lang.String
      • setStoreAddressId

        public void setStoreAddressId(java.lang.String newStoreAddressId)
        Set the store address identifier.

        Specified by:
        setStoreAddressId in interface VendorUpdateCmd
        Parameters:
        newStoreAddressId - java.lang.String
      • setVendorId

        public void setVendorId(java.lang.String newVendorId)
        Set the vendor identifier.

        Specified by:
        setVendorId in interface VendorUpdateCmd
        Parameters:
        newVendorId - java.lang.String
      • setVendorName

        public void setVendorName(java.lang.String newVendorName)
        Set the vendor name.

        Specified by:
        setVendorName in interface VendorUpdateCmd
        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 VendorUpdateCmd
        Parameters:
        newZipCode - java.lang.String
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method gets the information of the vendor to be updated 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
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution of updating the vendor.

        This method uses the following AccessBeans:

        • VendorAccessBean
        • VendorDescriptionAccessBean

        Exception:

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • handleException

        public void handleException(java.lang.Exception e,
                                    java.lang.String methodName)
                             throws ECException
        Formats an ECException based on the input exception value.

        Parameters:
        e - Exception - The exception instance to be formatted.
        methodName - String - The name of the method from which this method was called.

        Exception:

        Throws:
        ECException - - could be one of many different exceptions: ECSystemException. RemoteException, CreateException, FinderException, or NamingException.