com.ibm.commerce.inventory.commands
Class UpdateStoreAddressCmdImpl

com.ibm.commerce.inventory.commands.UpdateStoreAddressCmdImpl
All Implemented Interfaces:
ECCommand, TaskCommand, UpdateStoreAddressCmd

public class UpdateStoreAddressCmdImpl
implements UpdateStoreAddressCmd

Update the fulfillment or vendor address.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.inventory.commands.UpdateStoreAddressCmd
defaultCommandClassName, NAME
 
Constructor Summary
UpdateStoreAddressCmdImpl()
           
 
Method Summary
 java.lang.String getAddress1()
          Return vendor address line 1.
 java.lang.String getAddress2()
          Return vendor address line 2.
 java.lang.String getAddress3()
          Return vendor address line 3.
 java.lang.String getBusinessTitle()
          Return the businerss title.
 java.lang.String getCity()
          Return the city within this address.
 java.lang.String getCountry()
          Return the country or region within this address.
 java.lang.String getEmail1()
          Return the primary e-mail address.
 java.lang.String getEmail2()
          Return the secondary e-mail address.
 java.lang.String getFax1()
          Return the primary fax number.
 java.lang.String getFax2()
          Return the secondary fax number.
 java.lang.String getField1()
          Return the value of field1.
 java.lang.String getField2()
          Return the value of field2.
 java.lang.String getField3()
          Return the value of field3.
 java.lang.String getFirstName()
          Return the first name for the contact person.
 java.lang.String getLastName()
          Return the last name for the contact person.
 java.lang.String getMemberId()
          Return owner identifier.
 java.lang.String getMiddleName()
          Return the middle name for the contact person.
 java.lang.String getNickname()
          Return the nickname for the address.
 java.lang.String getPersonTitle()
          Return the business title for the contact person.
 java.lang.String getPhone1()
          Return the primary phone number.
 java.lang.String getPhone2()
          Return the secondary phone number.
 java.lang.String getShippingGeoCode()
          Return the shipping geographic code.
 java.lang.String getState()
          Return the state within this address.
 java.lang.String getStoreAddressId()
          Return the store address identifier.
 java.lang.String getTaxGeoCode()
          Return the tax geographic code.
 java.lang.String getZipCode()
          Return the ZIP code within this address.
protected  void handleException(java.lang.Exception e, java.lang.String methodName)
          Formats an ECException based on the input exception value.
 void performExecute()
          This method performs the execution of updating the address.
 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 setEmail1(java.lang.String newEmail1)
          Set the primary e-mail address.
 void setEmail2(java.lang.String newEmail2)
          Set the secondary e-mail address.
 void setFax1(java.lang.String newFax1)
          Set the primary fax number.
 void setFax2(java.lang.String newFax2)
          Set the secondary fax number.
 void setField1(java.lang.String newField1)
          Set the value of field1.
 void setField2(java.lang.String newField2)
          Set the value of field2.
 void setField3(java.lang.String newField3)
          Set the value of field3.
 void setFirstName(java.lang.String newFirstName)
          Set the first name for the contact person.
 void setLastName(java.lang.String newLastName)
          Set the last name for the contact person.
 void setMemberId(java.lang.String newMemberId)
          Set the owner identifier.
 void setMiddleName(java.lang.String newMiddleName)
          Set the middle name for the contact person.
 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 setPhone2(java.lang.String newPhone2)
          Set the secondary phone number.
 void setRequestProperties(TypedProperty reqParms)
          Set request properties.
 void setShippingGeoCode(java.lang.String newShippingGeoCode)
          Set the shipping geographic code.
 void setState(java.lang.String newState)
          Set the state within this address.
 void setStoreAddressId(java.lang.String newStoreAddressId)
          Set the store address identifier.
 void setTaxGeoCode(java.lang.String newTaxGeoCode)
          Set the tax geographic code.
 void setZipCode(java.lang.String newZipCode)
          Set the ZIP code within this address.
 void validateParameters()
          This method checks the information of address to be updated.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

UpdateStoreAddressCmdImpl

public UpdateStoreAddressCmdImpl()
Method Detail

getAddress1

public java.lang.String getAddress1()
Return vendor address line 1.
Returns:
java.lang.String

getAddress2

public java.lang.String getAddress2()
Return vendor address line 2.
Returns:
java.lang.String

getAddress3

public java.lang.String getAddress3()
Return vendor address line 3.
Returns:
java.lang.String

getBusinessTitle

public java.lang.String getBusinessTitle()
Return the businerss title.
Returns:
java.lang.String

getCity

public java.lang.String getCity()
Return the city within this address.
Returns:
java.lang.String

getCountry

public java.lang.String getCountry()
Return the country or region within this address.
Returns:
java.lang.String

getEmail1

public java.lang.String getEmail1()
Return the primary e-mail address.
Returns:
java.lang.String

getEmail2

public java.lang.String getEmail2()
Return the secondary e-mail address.
Returns:
java.lang.String

getFax1

public java.lang.String getFax1()
Return the primary fax number.
Returns:
java.lang.String

getFax2

public java.lang.String getFax2()
Return the secondary fax number.
Returns:
java.lang.String

getField1

public java.lang.String getField1()
Return the value of field1.
Returns:
java.lang.String

getField2

public java.lang.String getField2()
Return the value of field2.
Returns:
java.lang.String

getField3

public java.lang.String getField3()
Return the value of field3.
Returns:
java.lang.String

getFirstName

public java.lang.String getFirstName()
Return the first name for the contact person.
Returns:
java.lang.String

getLastName

public java.lang.String getLastName()
Return the last name for the contact person.
Returns:
java.lang.String

getMemberId

public java.lang.String getMemberId()
Return owner identifier.
Returns:
java.lang.String

getMiddleName

public java.lang.String getMiddleName()
Return the middle name for the contact person.
Returns:
java.lang.String

getNickname

public java.lang.String getNickname()
Return the nickname for the address.
Returns:
java.lang.String

getPersonTitle

public java.lang.String getPersonTitle()
Return the business title for the contact person.
Returns:
java.lang.String

getPhone1

public java.lang.String getPhone1()
Return the primary phone number.
Returns:
java.lang.String

getPhone2

public java.lang.String getPhone2()
Return the secondary phone number.
Returns:
java.lang.String

getShippingGeoCode

public java.lang.String getShippingGeoCode()
Return the shipping geographic code.
Returns:
java.lang.String

getState

public java.lang.String getState()
Return the state within this address.
Returns:
java.lang.String

getStoreAddressId

public java.lang.String getStoreAddressId()
Return the store address identifier.
Specified by:
getStoreAddressId in interface UpdateStoreAddressCmd
Returns:
java.lang.String

getTaxGeoCode

public java.lang.String getTaxGeoCode()
Return the tax geographic code.
Returns:
java.lang.String

getZipCode

public java.lang.String getZipCode()
Return the ZIP code within this address.
Returns:
java.lang.String

handleException

protected 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.
Throws:
ECException - - could be one of many different exceptions: ECApplicationException. RemoteException, CreateException, FinderException, or NamingException.

performExecute

public void performExecute()
                    throws ECException
This method performs the execution of updating the address.
Specified by:
performExecute in interface ECCommand
Throws:
ECException -  

setAddress1

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

setAddress2

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

setAddress3

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

setBusinessTitle

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

setCity

public void setCity(java.lang.String newCity)
Set the city within this address.
Specified by:
setCity in interface UpdateStoreAddressCmd
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 UpdateStoreAddressCmd
Parameters:
newCountry - java.lang.String

setEmail1

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

setEmail2

public void setEmail2(java.lang.String newEmail2)
Set the secondary e-mail address.
Specified by:
setEmail2 in interface UpdateStoreAddressCmd
Parameters:
newEmail2 - java.lang.String

setFax1

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

setFax2

public void setFax2(java.lang.String newFax2)
Set the secondary fax number.
Specified by:
setFax2 in interface UpdateStoreAddressCmd
Parameters:
newFax2 - java.lang.String

setField1

public void setField1(java.lang.String newField1)
Set the value of field1.
Specified by:
setField1 in interface UpdateStoreAddressCmd
Parameters:
newField1 - java.lang.String

setField2

public void setField2(java.lang.String newField2)
Set the value of field2.
Specified by:
setField2 in interface UpdateStoreAddressCmd
Parameters:
newField2 - java.lang.String

setField3

public void setField3(java.lang.String newField3)
Set the value of field3.
Specified by:
setField3 in interface UpdateStoreAddressCmd
Parameters:
newField3 - java.lang.String

setFirstName

public void setFirstName(java.lang.String newFirstName)
Set the first name for the contact person.
Specified by:
setFirstName in interface UpdateStoreAddressCmd
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 UpdateStoreAddressCmd
Parameters:
newLastName - java.lang.String

setMemberId

public void setMemberId(java.lang.String newMemberId)
Set the owner identifier.
Parameters:
newMemberId - java.lang.String

setMiddleName

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

setNickname

public void setNickname(java.lang.String newNickname)
Set the nickname for the address.
Specified by:
setNickname in interface UpdateStoreAddressCmd
Parameters:
newNickname - java.lang.String

setPersonTitle

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

setPhone1

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

setPhone2

public void setPhone2(java.lang.String newPhone2)
Set the secondary phone number.
Specified by:
setPhone2 in interface UpdateStoreAddressCmd
Parameters:
newPhone2 - java.lang.String

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
Set request properties.
Specified by:
setRequestProperties in interface UpdateStoreAddressCmd
Parameters:
reqParms - com.ibm.commerce.datatype.TypedProperty

setShippingGeoCode

public void setShippingGeoCode(java.lang.String newShippingGeoCode)
Set the shipping geographic code.
Specified by:
setShippingGeoCode in interface UpdateStoreAddressCmd
Parameters:
newShippingGeoCode - java.lang.String

setState

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

setStoreAddressId

public void setStoreAddressId(java.lang.String newStoreAddressId)
Set the store address identifier.
Specified by:
setStoreAddressId in interface UpdateStoreAddressCmd
Parameters:
newStoreAddressId - java.lang.String

setTaxGeoCode

public void setTaxGeoCode(java.lang.String newTaxGeoCode)
Set the tax geographic code.
Specified by:
setTaxGeoCode in interface UpdateStoreAddressCmd
Parameters:
newTaxGeoCode - java.lang.String

setZipCode

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

validateParameters

public void validateParameters()
                        throws ECException
This method checks the information of address to be updated.
Specified by:
validateParameters in interface ECCommand
Throws:
com.ibm.commerce.exception.ECApplicationException. - If mandatory parameters are not passed in, throw ECApplicationException.