java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.inventory.commands.CreateStoreAddressCmdImpl
Default implementation of the CreateStoreAddressCmd
interface.
Creates the fulfillment or vendor address.
Requires to have the store id set in the command context. Uses StoreAddressAccessBean.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands. CreateStoreAddressCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CreateStoreAddressCmdImpl() |
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 vendor business 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() Performs the execution of creating 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) Sets 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) Sets 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() Checks the information of address to be created. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CreateStoreAddressCmdImpl()
Method Detail |
---|
public java.lang.String getAddress1()
public java.lang.String getAddress2()
public java.lang.String getAddress3()
public java.lang.String getBusinessTitle()
public java.lang.String getCity()
public java.lang.String getCountry()
public java.lang.String getEmail1()
public java.lang.String getEmail2()
public java.lang.String getFax1()
public java.lang.String getFax2()
public java.lang.String getField1()
public java.lang.String getField2()
public java.lang.String getField3()
public java.lang.String getFirstName()
public java.lang.String getLastName()
public java.lang.String getMemberId()
public java.lang.String getMiddleName()
public java.lang.String getNickname()
public java.lang.String getPersonTitle()
public java.lang.String getPhone1()
public java.lang.String getPhone2()
public java.lang.String getShippingGeoCode()
public java.lang.String getState()
public java.lang.String getStoreAddressId()
getStoreAddressId
in interface
CreateStoreAddressCmd
public java.lang.String getTaxGeoCode()
public java.lang.String getZipCode()
public void setAddress1(java.lang.String newAddress1)
CreateStoreAddressCmd
setAddress1
in interface
CreateStoreAddressCmd
newAddress1
- vendor address line 1CreateStoreAddressCmd.setAddress1(java.lang.String)
public void setAddress2(java.lang.String newAddress2)
CreateStoreAddressCmd
setAddress2
in interface
CreateStoreAddressCmd
newAddress2
- vendor address line 2CreateStoreAddressCmd.setAddress2(java.lang.String)
public void setAddress3(java.lang.String newAddress3)
CreateStoreAddressCmd
setAddress3
in interface
CreateStoreAddressCmd
newAddress3
- vendor address line 3CreateStoreAddressCmd.setAddress3(java.lang.String)
public void setBusinessTitle(java.lang.String newBusinessTitle)
CreateStoreAddressCmd
setBusinessTitle
in interface
CreateStoreAddressCmd
newBusinessTitle
- business titleCreateStoreAddressCmd.setBusinessTitle(java.lang.String)
public void setCity(java.lang.String newCity)
CreateStoreAddressCmd
setCity
in interface
CreateStoreAddressCmd
newCity
- cityCreateStoreAddressCmd.setCity(java.lang.String)
public void setCountry(java.lang.String newCountry)
CreateStoreAddressCmd
setCountry
in interface
CreateStoreAddressCmd
newCountry
- country or regionCreateStoreAddressCmd.setCountry(java.lang.String)
public void setEmail1(java.lang.String newEmail1)
CreateStoreAddressCmd
setEmail1
in interface
CreateStoreAddressCmd
newEmail1
- e-mailCreateStoreAddressCmd.setEmail1(java.lang.String)
public void setEmail2(java.lang.String newEmail2)
CreateStoreAddressCmd
setEmail2
in interface
CreateStoreAddressCmd
newEmail2
- e-mailCreateStoreAddressCmd.setEmail2(java.lang.String)
public void setFax1(java.lang.String newFax1)
CreateStoreAddressCmd
setFax1
in interface
CreateStoreAddressCmd
newFax1
- fax numberCreateStoreAddressCmd.setFax1(java.lang.String)
public void setFax2(java.lang.String newFax2)
CreateStoreAddressCmd
setFax2
in interface
CreateStoreAddressCmd
newFax2
- fax numberCreateStoreAddressCmd.setFax2(java.lang.String)
public void setField1(java.lang.String newField1)
CreateStoreAddressCmd
setField1
in interface
CreateStoreAddressCmd
newField1
- field1CreateStoreAddressCmd.setField1(java.lang.String)
public void setField2(java.lang.String newField2)
CreateStoreAddressCmd
setField2
in interface
CreateStoreAddressCmd
newField2
- field2CreateStoreAddressCmd.setField2(java.lang.String)
public void setField3(java.lang.String newField3)
CreateStoreAddressCmd
setField3
in interface
CreateStoreAddressCmd
newField3
- field3CreateStoreAddressCmd.setField3(java.lang.String)
public void setFirstName(java.lang.String newFirstName)
CreateStoreAddressCmd
setFirstName
in interface
CreateStoreAddressCmd
newFirstName
- given nameCreateStoreAddressCmd.setFirstName(java.lang.String)
public void setLastName(java.lang.String newLastName)
CreateStoreAddressCmd
setLastName
in interface
CreateStoreAddressCmd
newLastName
- surnameCreateStoreAddressCmd.setLastName(java.lang.String)
public void setMemberId(java.lang.String newMemberId)
CreateStoreAddressCmd
setMemberId
in interface
CreateStoreAddressCmd
newMemberId
- owner idCreateStoreAddressCmd.setMemberId(java.lang.String)
public void setMiddleName(java.lang.String newMiddleName)
CreateStoreAddressCmd
setMiddleName
in interface
CreateStoreAddressCmd
newMiddleName
- middle name or initialCreateStoreAddressCmd.setMiddleName(java.lang.String)
public void setNickname(java.lang.String newNickname)
CreateStoreAddressCmd
setNickname
in interface
CreateStoreAddressCmd
newNickname
- address nicknameCreateStoreAddressCmd.setNickname(java.lang.String)
public void setPersonTitle(java.lang.String newPersonTitle)
CreateStoreAddressCmd
setPersonTitle
in interface
CreateStoreAddressCmd
newPersonTitle
- business titleCreateStoreAddressCmd.setPersonTitle(java.lang.String)
public void setPhone1(java.lang.String newPhone1)
CreateStoreAddressCmd
setPhone1
in interface
CreateStoreAddressCmd
newPhone1
- phone numberCreateStoreAddressCmd.setPhone1(java.lang.String)
public void setPhone2(java.lang.String newPhone2)
CreateStoreAddressCmd
setPhone2
in interface
CreateStoreAddressCmd
newPhone2
- phone numberCreateStoreAddressCmd.setPhone2(java.lang.String)
public void setShippingGeoCode(java.lang.String newShippingGeoCode)
CreateStoreAddressCmd
setShippingGeoCode
in interface
CreateStoreAddressCmd
newShippingGeoCode
- geographic codeCreateStoreAddressCmd.setShippingGeoCode(java.lang.String)
public void setState(java.lang.String newState)
CreateStoreAddressCmd
setState
in interface
CreateStoreAddressCmd
newState
- stateCreateStoreAddressCmd.setState(java.lang.String)
public void setStoreAddressId(java.lang.String newStoreAddressId)
newStoreAddressId
- store addresspublic void setTaxGeoCode(java.lang.String newTaxGeoCode)
CreateStoreAddressCmd
setTaxGeoCode
in interface
CreateStoreAddressCmd
newTaxGeoCode
- geographic codeCreateStoreAddressCmd.setTaxGeoCode(java.lang.String)
public void setZipCode(java.lang.String newZipCode)
CreateStoreAddressCmd
setZipCode
in interface
CreateStoreAddressCmd
newZipCode
- postal codeCreateStoreAddressCmd.setZipCode(java.lang.String)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface
CreateStoreAddressCmd
reqParms
- name value pairs
ECApplicationException
CreateStoreAddressCmd.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException.
- If mandatory parameters are not
passed in, specify _ERR_BAD_MISSING_CMD_PARAMETER.ECException
public void performExecute() throws ECException
This method sets the StoreAddressDataBean
.
Uses StoreAddressAccessBean.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
protected void handleException(java.lang.Exception e, java.lang.String methodName) throws ECException
e
- Exception the exception instance to be formattedmethodName
- String the name of the method from which this
method was calledECException
- could be one of many different exceptions including: