Class AddressImpl
java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapcommonbol.businesspartner.businessobject.impl.AddressImpl
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,Address,Serializable,Cloneable,Comparable<Address>
BO representation of an address
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.sap.sapcommonbol.businesspartner.businessobject.interf.Address
Address.Operation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Log4JWrapperstatic final StringPostfix to create X fields names (indicating change flag) from standard field namesFields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKeyFields inherited from interface de.hybris.platform.sap.sapcommonbol.businesspartner.businessobject.interf.Address
TYPE_ORGANISATION, TYPE_PERSONFields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearX()clearX This method is to clear the values of all the "X" variablesfinal AddressImplclone()Makes a copy of the object.intReturns the attribute value for a given bean attributegetCity()booleangetCityX()booleanbooleanbooleangetEmail()Returns the property emailbooleanbooleanbooleanbooleanbooleangetId()Returns the property idbooleangetName()getName1()booleangetName2()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleangetType()Returns the property typebooleanCompares all address content fieldsbooleangetIs_changed This method will check all the "X" fields and see if the address has changed or notvoidsetAddressPartner(String partner) Setter for bean attributevoidsetAddressString(String addressString) Sets address in short formatvoidsetAddressStringC(String addressStringC) Sets address string including namevoidsetAddrguid(String addrguid) Sets address guid (only relevant for CRM backend)voidsetAddrnum(String addrnum) Sets address number which is available in the CRM or ERP backendvoidAll (delta) attributes indicating that bean attributes have been changed are set to truevoidSetter for bean attributevoidsetCompanyName(String companyName) Sets company namevoidsetCountry(String country) Setter for bean attributevoidsetCountyList(List<County> countyList) Sets lists of available counties.voidsetDistrict(String district) Setter for bean attributevoidSet the property eMailvoidsetFaxExtens(String faxExtens) Setter for bean attributevoidsetFaxNumber(String faxNumber) Setter for bean attributevoidsetFirstName(String firstName) voidsetHouseNo(String houseNo) Setter for bean attributevoidSet the property idvoidsetLastName(String lastName) voidSetter for bean attributevoidSetter for bean attributevoidsetOperation(Address.Operation operation) Sets operation mode on current addressvoidsetPostlCod1(String postlCod1) Setter for bean attributevoidsetPostlCod2(String postlCod2) Setter for bean attributevoidSetter for bean attributevoidSetter for bean attributevoidsetTaxJurCode(String taxJurCode) Setter for bean attributevoidsetTel1Ext(String tel1Ext) Setter for bean attributevoidsetTel1Numbr(String tel1Numbr) Setter for bean attributevoidsetTelmob1(String telmob1) Sets first mobile numbervoidsetTelmob1Seq(String telmob1_seq) Sets respective bean attributevoidsetTitleKey(String titleKey) voidSet the property typeMethods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, setValid, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValidMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
Field Details
-
LOG
-
X_STR
Postfix to create X fields names (indicating change flag) from standard field names- See Also:
-
-
Constructor Details
-
AddressImpl
public AddressImpl()simple constructor
-
-
Method Details
-
setId
Set the property id -
getId
Returns the property id -
setType
Set the property type -
getType
Returns the property type -
setTitleKey
- Specified by:
setTitleKeyin interfaceAddress- Parameters:
titleKey- short ID of title
-
setFirstName
- Specified by:
setFirstNamein interfaceAddress- Parameters:
firstName- the fist name
-
setLastName
- Specified by:
setLastNamein interfaceAddress- Parameters:
lastName- the last name
-
setName1
Description copied from interface:AddressSetter for bean attribute -
setName2
Description copied from interface:AddressSetter for bean attribute -
setCity
Description copied from interface:AddressSetter for bean attribute -
setDistrict
Description copied from interface:AddressSetter for bean attribute- Specified by:
setDistrictin interfaceAddress- Parameters:
district- geographic entity for tax jurisdiction code determination
-
getDistrictX
public boolean getDistrictX()- Specified by:
getDistrictXin interfaceAddress- Returns:
- respective bean change attribute
-
setPostlCod1
Description copied from interface:AddressSetter for bean attribute- Specified by:
setPostlCod1in interfaceAddress- Parameters:
postlCod1- the postal code 1
-
getPostlCod1X
public boolean getPostlCod1X()- Specified by:
getPostlCod1Xin interfaceAddress- Returns:
- respective bean change attribute
-
setPostlCod2
Description copied from interface:AddressSetter for bean attribute- Specified by:
setPostlCod2in interfaceAddress- Parameters:
postlCod2- the postal code 2
-
setStreet
Description copied from interface:AddressSetter for bean attribute -
setHouseNo
Description copied from interface:AddressSetter for bean attribute- Specified by:
setHouseNoin interfaceAddress- Parameters:
houseNo- The house no
-
setCountry
Description copied from interface:AddressSetter for bean attribute- Specified by:
setCountryin interfaceAddress- Parameters:
country- The Country
-
setRegion
Description copied from interface:AddressSetter for bean attribute -
setTaxJurCode
Description copied from interface:AddressSetter for bean attribute- Specified by:
setTaxJurCodein interfaceAddress- Parameters:
taxJurCode- tax jurisdiction code. Can be determined from full address or from district
-
setTel1Numbr
Description copied from interface:AddressSetter for bean attribute- Specified by:
setTel1Numbrin interfaceAddress- Parameters:
tel1Numbr- the telephone number
-
setTel1Ext
Description copied from interface:AddressSetter for bean attribute- Specified by:
setTel1Extin interfaceAddress- Parameters:
tel1Ext- the telephone extension
-
setFaxNumber
Description copied from interface:AddressSetter for bean attribute- Specified by:
setFaxNumberin interfaceAddress- Parameters:
faxNumber- The fax number
-
getFaxNumberX
public boolean getFaxNumberX()- Specified by:
getFaxNumberXin interfaceAddress- Returns:
- respective bean change attribute
-
setFaxExtens
Description copied from interface:AddressSetter for bean attribute- Specified by:
setFaxExtensin interfaceAddress- Parameters:
faxExtens- the fax number extension
-
setAddressPartner
Description copied from interface:AddressSetter for bean attribute- Specified by:
setAddressPartnerin interfaceAddress- Parameters:
partner- business partner owning the address
-
getTitleKey
- Specified by:
getTitleKeyin interfaceAddress- Returns:
- respective bean attribute
-
getFirstName
- Specified by:
getFirstNamein interfaceAddress- Returns:
- respective bean attribute
-
getLastName
- Specified by:
getLastNamein interfaceAddress- Returns:
- respective bean attribute
-
getName1
-
getName2
-
getCity
-
getDistrict
- Specified by:
getDistrictin interfaceAddress- Returns:
- geographic entity used for tax jurisdiction code determination
-
getPostlCod1
- Specified by:
getPostlCod1in interfaceAddress- Returns:
- respective bean attribute
-
getPostlCod2
- Specified by:
getPostlCod2in interfaceAddress- Returns:
- respective bean attribute
-
getStreet
-
getHouseNo
- Specified by:
getHouseNoin interfaceAddress- Returns:
- respective bean attribute
-
getCountry
- Specified by:
getCountryin interfaceAddress- Returns:
- respective bean attribute
-
getRegion
-
getTaxJurCode
- Specified by:
getTaxJurCodein interfaceAddress- Returns:
- tax jurisdiction which can be derived from complete address or from country, regions city, street and district
-
getTel1Numbr
- Specified by:
getTel1Numbrin interfaceAddress- Returns:
- respective bean attribute
-
getTel1Ext
- Specified by:
getTel1Extin interfaceAddress- Returns:
- respective bean attribute
-
getFaxNumber
- Specified by:
getFaxNumberin interfaceAddress- Returns:
- respective bean attribute
-
getFaxExtens
- Specified by:
getFaxExtensin interfaceAddress- Returns:
- respective bean attribute
-
getAddressPartner
- Specified by:
getAddressPartnerin interfaceAddress- Returns:
- partner who owns this address
-
setEmail
Set the property eMail -
getEmail
Returns the property email -
getName
-
clone
Description copied from class:BusinessObjectBaseMakes a copy of the object. The MessageList is copied.- Specified by:
clonein interfaceAddress- Overrides:
clonein classBusinessObjectBase- Returns:
- a copy of object
-
setOperation
Description copied from interface:AddressSets operation mode on current address- Specified by:
setOperationin interfaceAddress- Parameters:
operation- the address operation- See Also:
-
getOperation
- Specified by:
getOperationin interfaceAddress- Returns:
- current operation
- See Also:
-
getTelmob1
- Specified by:
getTelmob1in interfaceAddress- Returns:
- respective bean attribute
-
setTelmob1
Description copied from interface:AddressSets first mobile number- Specified by:
setTelmob1in interfaceAddress- Parameters:
telmob1- the telmob1
-
getTelmob1X
public boolean getTelmob1X()- Specified by:
getTelmob1Xin interfaceAddress- Returns:
- respective bean change attribute
-
getEmailX
public boolean getEmailX() -
getAddrnum
- Specified by:
getAddrnumin interfaceAddress- Returns:
- address number from CRM or ERP backend if available
-
setAddrnum
Description copied from interface:AddressSets address number which is available in the CRM or ERP backend- Specified by:
setAddrnumin interfaceAddress- Parameters:
addrnum- the address number (BAS)
-
getAddrguid
- Specified by:
getAddrguidin interfaceAddress- Returns:
- guid of address, only available in CRM case
-
setAddrguid
Description copied from interface:AddressSets address guid (only relevant for CRM backend)- Specified by:
setAddrguidin interfaceAddress- Parameters:
addrguid- the address guid
-
getLastNameX
public boolean getLastNameX()- Specified by:
getLastNameXin interfaceAddress- Returns:
- respective bean change attribute
-
getCountyList
- Specified by:
getCountyListin interfaceAddress- Returns:
- list of available counties. Relevant for tax jurisdiction code determination
-
setCountyList
Description copied from interface:AddressSets lists of available counties. Relevant for tax jurisdiction code determination- Specified by:
setCountyListin interfaceAddress- Parameters:
countyList- the county list
-
getFirstNameX
public boolean getFirstNameX()- Specified by:
getFirstNameXin interfaceAddress- Returns:
- respective bean change attribute
-
getName1X
public boolean getName1X() -
getName2X
public boolean getName2X() -
getCityX
public boolean getCityX() -
getCountryX
public boolean getCountryX()- Specified by:
getCountryXin interfaceAddress- Returns:
- respective bean change attribute
-
getStreetX
public boolean getStreetX()- Specified by:
getStreetXin interfaceAddress- Returns:
- respective bean change attribute
-
getRegionX
public boolean getRegionX()- Specified by:
getRegionXin interfaceAddress- Returns:
- respective bean change attribute
-
getHouseNoX
public boolean getHouseNoX()- Specified by:
getHouseNoXin interfaceAddress- Returns:
- respective bean change attribute
-
getTel1NumbrX
public boolean getTel1NumbrX()- Specified by:
getTel1NumbrXin interfaceAddress- Returns:
- respective bean change attribute
-
getTel1ExtX
public boolean getTel1ExtX()- Specified by:
getTel1ExtXin interfaceAddress- Returns:
- respective bean change attribute
-
getFaxExtensX
public boolean getFaxExtensX()- Specified by:
getFaxExtensXin interfaceAddress- Returns:
- respective bean change attribute
-
getTaxJurCodeX
public boolean getTaxJurCodeX()- Specified by:
getTaxJurCodeXin interfaceAddress- Returns:
- respective bean change attribute
-
getTitleKeyX
public boolean getTitleKeyX()- Specified by:
getTitleKeyXin interfaceAddress- Returns:
- respective bean change attribute
-
setTelmob1Seq
Description copied from interface:AddressSets respective bean attribute- Specified by:
setTelmob1Seqin interfaceAddress- Parameters:
telmob1_seq- the telmob1 sequence number
-
getTelmob1Seq
- Specified by:
getTelmob1Seqin interfaceAddress- Returns:
- respective bean attribute
-
getCompanyName
- Specified by:
getCompanyNamein interfaceAddress- Returns:
- respective bean attribute
-
setCompanyName
Description copied from interface:AddressSets company name- Specified by:
setCompanyNamein interfaceAddress- Parameters:
companyName- the company name
-
getCompanyNameX
public boolean getCompanyNameX()- Specified by:
getCompanyNameXin interfaceAddress- Returns:
- respective bean change attribute
-
getAddressString
- Specified by:
getAddressStringin interfaceAddress- Returns:
- address in string format
-
setAddressString
Description copied from interface:AddressSets address in short format- Specified by:
setAddressStringin interfaceAddress- Parameters:
addressString- the address string
-
getAddressStringC
- Specified by:
getAddressStringCin interfaceAddress- Returns:
- address string including name
-
setAddressStringC
Description copied from interface:AddressSets address string including name- Specified by:
setAddressStringCin interfaceAddress- Parameters:
addressStringC- address in string format, including name
-
clearX
public void clearX()clearX This method is to clear the values of all the "X" variables -
isChanged
public boolean isChanged()getIs_changed This method will check all the "X" fields and see if the address has changed or not -
setAllXFields
public void setAllXFields()Description copied from interface:AddressAll (delta) attributes indicating that bean attributes have been changed are set to true- Specified by:
setAllXFieldsin interfaceAddress
-
getPostlCod2X
public boolean getPostlCod2X()- Specified by:
getPostlCod2Xin interfaceAddress- Returns:
- respective bean change attribute
-
get
Description copied from interface:AddressReturns the attribute value for a given bean attribute -
isAddressfieldsEqualTo
Description copied from interface:AddressCompares all address content fields- Specified by:
isAddressfieldsEqualToin interfaceAddress- Parameters:
a- the address to be compared- Returns:
- true, if all address content fields are equal
-
compareTo
- Specified by:
compareToin interfaceComparable<Address>
-