|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.inventory.commands.VendorUpdateCmdImpl
Update the vendor.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
protected java.lang.String |
istrXMLFile
|
Fields inherited from interface com.ibm.commerce.inventory.commands.VendorUpdateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
VendorUpdateCmdImpl()
|
Method Summary | |
protected java.lang.String |
generateNicknameForVendor(java.lang.String languageId)
This mthod 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 businerss 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 identifer 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 businerss 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. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
protected java.lang.String istrXMLFile
Constructor Detail |
public VendorUpdateCmdImpl()
Method Detail |
protected java.lang.String generateNicknameForVendor(java.lang.String languageId)
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 void getMemberIdAndIdentifierFromStoreent() throws ECException
com.ibm.commerce.exception.ECException.
- protected java.lang.String getMiddleName()
protected java.lang.String getNickname()
protected java.lang.String getPersonTitle()
protected java.lang.String getPhone1()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
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 handleException(java.lang.Exception e, java.lang.String methodName) throws ECException
e
- Exception - The exception instance to be formatted.methodName
- String - The name of the method from which this method was called.ECException
- - could be one of many different exceptions:
ECApplicationException. RemoteException,
CreateException, FinderException, or NamingException.protected void handleSubmitError(ECException e) throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException with the newly constructed message.public void performExecute() throws ECException
performExecute
in interface ECCommand
ECException
- public void setAddress1(java.lang.String newAddress1)
setAddress1
in interface VendorUpdateCmd
newAddress1
- java.lang.Stringpublic void setAddress2(java.lang.String newAddress2)
setAddress2
in interface VendorUpdateCmd
newAddress2
- java.lang.Stringpublic void setAddress3(java.lang.String newAddress3)
setAddress3
in interface VendorUpdateCmd
newAddress3
- java.lang.Stringpublic void setBusinessTitle(java.lang.String newBusinessTitle)
setBusinessTitle
in interface VendorUpdateCmd
newBusinessTitle
- java.lang.Stringpublic void setCity(java.lang.String newCity)
setCity
in interface VendorUpdateCmd
newCity
- java.lang.Stringpublic void setCountry(java.lang.String newCountry)
setCountry
in interface VendorUpdateCmd
newCountry
- java.lang.Stringpublic void setDescription(java.lang.String newDescription)
setDescription
in interface VendorUpdateCmd
newDescription
- java.lang.Stringpublic void setEmail1(java.lang.String newEmail1)
setEmail1
in interface VendorUpdateCmd
newEmail1
- java.lang.Stringpublic void setFax1(java.lang.String newFax1)
setFax1
in interface VendorUpdateCmd
newFax1
- java.lang.Stringpublic void setFirstName(java.lang.String newFirstName)
setFirstName
in interface VendorUpdateCmd
newFirstName
- java.lang.Stringprotected void setLanguageId(java.lang.String newLanguageId)
newLanguageId
- java.lang.Stringpublic void setLastName(java.lang.String newLastName)
setLastName
in interface VendorUpdateCmd
newLastName
- java.lang.Stringprotected void setMemberId(java.lang.String newMemberId)
newMemberId
- java.lang.Stringpublic void setMiddleName(java.lang.String newMiddleName)
setMiddleName
in interface VendorUpdateCmd
newMiddleName
- java.lang.Stringprotected void setNickname(java.lang.String newNickname)
newNickname
- java.lang.Stringpublic void setPersonTitle(java.lang.String newPersonTitle)
setPersonTitle
in interface VendorUpdateCmd
newPersonTitle
- java.lang.Stringpublic void setPhone1(java.lang.String newPhone1)
setPhone1
in interface VendorUpdateCmd
newPhone1
- java.lang.Stringpublic void setState(java.lang.String newState)
setState
in interface VendorUpdateCmd
newState
- java.lang.Stringpublic void setStoreAddressId(java.lang.String newStoreAddressId)
setStoreAddressId
in interface VendorUpdateCmd
newStoreAddressId
- java.lang.Stringprotected void setStoreentId(java.lang.String newStoreentId)
newStoreentId
- java.lang.Stringprotected void setStoreEntityIdentifier(java.lang.String newStoreEntityIdentifier)
newStoreEntityIdentifier
- java.lang.Stringpublic void setVendorId(java.lang.String newVendorId)
setVendorId
in interface VendorUpdateCmd
newVendorId
- java.lang.Stringpublic void setVendorName(java.lang.String newVendorName)
setVendorName
in interface VendorUpdateCmd
newVendorName
- java.lang.Stringpublic void setZipCode(java.lang.String newZipCode)
setZipCode
in interface VendorUpdateCmd
newZipCode
- java.lang.Stringprotected void updateNicknames() throws ECSystemException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
com.ibm.commerce.exception.ECApplicationException.
- If the
XMLObject cannot be parsed as expected, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |