public class VendorUpdateCmdImpl extends ToolsControllerCommandImpl implements VendorUpdateCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants, com.ibm.commerce.inventory.commands.InventoryConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT |
protected java.lang.String | istrXMLFile |
Constructor and Description |
---|
VendorUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | generateNicknameForVendor(java.lang.String languageId)
This method generates nickname for vendor.
|
protected java.lang.String | getAddress1()
Return vendor address line 1.
|
protected java.lang.String | getAddress2()
Return vendor address line 2.
|
protected java.lang.String | getAddress3()
Return vendor address line 3.
|
protected java.lang.String | getBusinessTitle()
Return the business title.
|
protected java.lang.String | getCity()
Return the city within this address.
|
protected java.lang.String | getCountry()
Return the country or region within this address.
|
protected java.lang.String | getDescription()
Return the description of the vendor.
|
protected java.lang.String | getEmail1()
Return the primary e-mail address.
|
protected java.lang.String | getFax1()
Return the primary fax number.
|
protected java.lang.String | getFirstName()
Return the first name for the contact person.
|
protected java.lang.String | getLanguageId()
Return the language identifier.
|
protected java.lang.String | getLastName()
Return the last name for the contact person.
|
protected java.lang.String | getMemberId()
Return owner identifier.
|
protected void | getMemberIdAndIdentifierFromStoreent()
This method gets owner identifier and identifier string of the store entity.
|
protected java.lang.String | getMiddleName()
Return the middle name for the contact person.
|
protected java.lang.String | getNickname()
Return the nickname for the address.
|
protected java.lang.String | getPersonTitle()
Return the business title for the contact person.
|
protected java.lang.String | getPhone1()
Return the primary phone number.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
protected java.lang.String | getState()
Return the state within this address.
|
protected java.lang.String | getStoreAddressId()
Return the store address identifier.
|
protected java.lang.String | getStoreentId()
Return the store entity identifier.
|
protected java.lang.String | getStoreEntityIdentifier()
Return the identifier string of store entity.
|
protected java.lang.String | getVendorId()
Return the vendor identifier.
|
protected java.lang.String | getVendorName()
Return the vendor name.
|
protected java.lang.String | getZipCode()
Return the ZIP code within this address.
|
void | handleException(java.lang.Exception e, java.lang.String methodName)
Formats an ECException based on the input exception value.
|
protected void | handleSubmitError(ECException e)
This method constructs and returns the error message.
|
void | performExecute()
This method performs the execution of updating the vendor.
|
void | setAddress1(java.lang.String newAddress1)
Set vendor address line 1.
|
void | setAddress2(java.lang.String newAddress2)
Set vendor address line 2.
|
void | setAddress3(java.lang.String newAddress3)
Set vendor address line 3.
|
void | setBusinessTitle(java.lang.String newBusinessTitle)
Set the business title.
|
void | setCity(java.lang.String newCity)
Set the city within this address.
|
void | setCountry(java.lang.String newCountry)
Set the country or region within this address.
|
void | setDescription(java.lang.String newDescription)
Set the description of the vendor.
|
void | setEmail1(java.lang.String newEmail1)
Set the primary e-mail address.
|
void | setFax1(java.lang.String newFax1)
Set the primary fax number.
|
void | setFirstName(java.lang.String newFirstName)
Set the first name for the contact person.
|
protected void | setLanguageId(java.lang.String newLanguageId)
Set the language identifier.
|
void | setLastName(java.lang.String newLastName)
Set the last name for the contact person.
|
protected void | setMemberId(java.lang.String newMemberId)
Set the owner identifier.
|
void | setMiddleName(java.lang.String newMiddleName)
Set the middle name for the contact person.
|
protected void | setNickname(java.lang.String newNickname)
Set the nickname for the address.
|
void | setPersonTitle(java.lang.String newPersonTitle)
Set the business title for the contact person.
|
void | setPhone1(java.lang.String newPhone1)
Set the primary phone number.
|
void | setState(java.lang.String newState)
Set the state within this address.
|
void | setStoreAddressId(java.lang.String newStoreAddressId)
Set the store address identifier.
|
protected void | setStoreentId(java.lang.String newStoreentId)
Set the store entity identifier.
|
protected void | setStoreEntityIdentifier(java.lang.String newStoreEntityIdentifier)
Set the identifier string of store entity.
|
void | setVendorId(java.lang.String newVendorId)
Set the vendor identifier.
|
void | setVendorName(java.lang.String newVendorName)
Set the vendor name.
|
void | setZipCode(java.lang.String newZipCode)
Set the ZIP code within this address.
|
protected void | updateNicknames()
This method updates staddress nicknames of different languages for a vendor.
|
void | validateParameters()
This method gets the information of the vendor to be updated and sets the information into the command local variable.
|
public static final java.lang.String COPYRIGHT
protected java.lang.String istrXMLFile
protected java.lang.String getAddress1()
protected java.lang.String getAddress2()
protected java.lang.String getAddress3()
protected java.lang.String getBusinessTitle()
protected java.lang.String getCity()
protected java.lang.String getCountry()
protected java.lang.String getDescription()
protected java.lang.String getEmail1()
protected java.lang.String getFax1()
protected java.lang.String getFirstName()
protected java.lang.String getLanguageId()
protected java.lang.String getLastName()
protected java.lang.String getMemberId()
protected java.lang.String getMiddleName()
protected java.lang.String getNickname()
protected java.lang.String getPersonTitle()
protected java.lang.String getPhone1()
protected java.lang.String getState()
protected java.lang.String getStoreAddressId()
protected java.lang.String getStoreentId()
protected java.lang.String getStoreEntityIdentifier()
protected java.lang.String getVendorId()
protected java.lang.String getVendorName()
protected java.lang.String getZipCode()
public void setAddress1(java.lang.String newAddress1)
public void setAddress2(java.lang.String newAddress2)
public void setAddress3(java.lang.String newAddress3)
public void setBusinessTitle(java.lang.String newBusinessTitle)
public void setCity(java.lang.String newCity)
public void setCountry(java.lang.String newCountry)
public void setDescription(java.lang.String newDescription)
public void setEmail1(java.lang.String newEmail1)
public void setFax1(java.lang.String newFax1)
public void setFirstName(java.lang.String newFirstName)
protected void setLanguageId(java.lang.String newLanguageId)
public void setLastName(java.lang.String newLastName)
protected void setMemberId(java.lang.String newMemberId)
public void setMiddleName(java.lang.String newMiddleName)
protected void setNickname(java.lang.String newNickname)
public void setPersonTitle(java.lang.String newPersonTitle)
public void setPhone1(java.lang.String newPhone1)
public void setState(java.lang.String newState)
public void setStoreAddressId(java.lang.String newStoreAddressId)
protected void setStoreentId(java.lang.String newStoreentId)
protected void setStoreEntityIdentifier(java.lang.String newStoreEntityIdentifier)
public void setVendorId(java.lang.String newVendorId)
public void setVendorName(java.lang.String newVendorName)
public void setZipCode(java.lang.String newZipCode)
public void validateParameters() throws ECException
Exception:
protected void getMemberIdAndIdentifierFromStoreent() throws ECException
This method uses the following AccessBean:
public AccessVector getResources() throws ECException
This method uses the following AccessBean:
Exception:
public void performExecute() throws ECException
This method uses the following AccessBeans:
Exception:
protected java.lang.String generateNicknameForVendor(java.lang.String languageId)
<name2>?<name1>?<lang_id>?<type> where <name2> = Vendor.VendorName <name1> = StoreEntity.Identifier <lang_id> = language_id <type> = "VendorLocation".
protected void updateNicknames() throws ECSystemException
This method uses the following AccessBean:
Exception:
public void handleException(java.lang.Exception e, java.lang.String methodName) throws ECException
Exception:
protected void handleSubmitError(ECException e) throws ECApplicationException
Exception: