Class AccountAddress
- java.lang.Object
-
- com.broadleafcommerce.customer.domain.AccountAddress
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,com.broadleafcommerce.data.tracking.core.policy.Owned,Serializable
public class AccountAddress extends Object implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable, com.broadleafcommerce.data.tracking.core.policy.Owned
A physical address related to theAccount. In a B2B context, this may represent the "Ship To" or "Bill To" address for the business/department.- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccountAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalAttribute(String name, Object value)Takes in any additional attributes passed in the request not matching any defined properties.protected booleancanEqual(Object other)booleanequals(Object o)AccountRefgetAccountRef()The account in the relationship.Map<String,Object>getAdditionalAttributes()Return any additional attributes passed in the request not matching any defined properties.StringgetAddressLine1()Primary address information, typically street name and building number.StringgetAddressLine2()Secondary address information, like apartment, suite, or unit number.StringgetAddressLine3()Tertiary address information, typically for international addresses.StringgetCity()The city, town or village of this address.StringgetCompanyName()The name of the company at this address.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()A subset ofTrackinginformation to expose the context state for this object.StringgetCountry()The country for this address.StringgetCounty()The county of this address.StringgetEmailAddress()The email address of the individual at this physical address.StringgetFirstName()The first name of the individual at this address.StringgetFullName()The combined names of the individual at this address.StringgetId()The context ID of the relationship.StringgetLastName()The last name of the individual at this address.StringgetName()The user-provided name of the address.StringgetOwnerIdentifier()PhonegetPhoneFax()Thefax numberfor this address.PhonegetPhonePrimary()The primaryphone numberfor this address.PhonegetPhoneSecondary()The secondaryphone numberfor this address.StringgetPostalCode()Postal code or ZIP code for this address.StringgetStateProvinceRegion()The state, province or region of this address.StringgetType()The type of address for this account.StringgetVisibleToChildren()Whether this address is visible to Children.inthashCode()booleanisActive()Whether this address is an active address of the owner.booleanisDefault()Specifies whether or not this is the default for this type of address.voidsetAccountRef(AccountRef accountRef)The account in the relationship.voidsetActive(boolean isActive)Whether this address is an active address of the owner.voidsetAdditionalAttributes(Map<String,Object> additionalAttributes)Map holding any additional attributes passed in the request not matching any defined properties.voidsetAddressLine1(String addressLine1)Primary address information, typically street name and building number.voidsetAddressLine2(String addressLine2)Secondary address information, like apartment, suite, or unit number.voidsetAddressLine3(String addressLine3)Tertiary address information, typically for international addresses.voidsetCity(String city)The city, town or village of this address.voidsetCompanyName(String companyName)The name of the company at this address.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)A subset ofTrackinginformation to expose the context state for this object.voidsetCountry(String country)The country for this address.voidsetCounty(String county)The county of this address.voidsetDefault(boolean isDefault)Specifies whether or not this is the default for this type of address.voidsetEmailAddress(String emailAddress)The email address of the individual at this physical address.voidsetFirstName(String firstName)The first name of the individual at this address.voidsetFullName(String fullName)The combined names of the individual at this address.voidsetId(String id)The context ID of the relationship.voidsetLastName(String lastName)The last name of the individual at this address.voidsetName(String name)The user-provided name of the address.voidsetPhoneFax(Phone phoneFax)Thefax numberfor this address.voidsetPhonePrimary(Phone phonePrimary)The primaryphone numberfor this address.voidsetPhoneSecondary(Phone phoneSecondary)The secondaryphone numberfor this address.voidsetPostalCode(String postalCode)Postal code or ZIP code for this address.voidsetStateProvinceRegion(String stateProvinceRegion)The state, province or region of this address.voidsetType(String type)The type of address for this account.voidsetVisibleToChildren(String visibleToChildren)Whether this address is visible to Children.StringtoString()
-
-
-
Method Detail
-
addAdditionalAttribute
public void addAdditionalAttribute(String name, Object value)
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getAdditionalAttributes
public Map<String,Object> getAdditionalAttributes()
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getOwnerIdentifier
public String getOwnerIdentifier()
- Specified by:
getOwnerIdentifierin interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getId
public String getId()
The context ID of the relationship.- Returns:
- the context ID of the relationship
-
getName
public String getName()
The user-provided name of the address.- Returns:
- the user-provided name of the address
-
getType
public String getType()
The type of address for this account. For example, in a B2B context, this type may beDefaultB2BAccountAddressTypes.SHIP_TOorDefaultB2BAccountAddressTypes.BILL_TO- Returns:
- the type of address for this account
- See Also:
AccountAddressType
-
isDefault
public boolean isDefault()
Specifies whether or not this is the default for this type of address.- Returns:
- whether or not this is the default for this type of address
-
getAccountRef
public AccountRef getAccountRef()
The account in the relationship.- Returns:
- the account in the relationship
-
getFirstName
public String getFirstName()
The first name of the individual at this address.- Returns:
- The first name of the individual at this address.
-
getLastName
public String getLastName()
The last name of the individual at this address.- Returns:
- The last name of the individual at this address.
-
getFullName
public String getFullName()
The combined names of the individual at this address. It is considered better UX to use a full name field in place of separate first and last name fields.- Returns:
- The combined names of the individual at this address
-
getEmailAddress
public String getEmailAddress()
The email address of the individual at this physical address.- Returns:
- The email address of the individual at this physical address.
-
getCompanyName
public String getCompanyName()
The name of the company at this address.- Returns:
- The name of the company at this address.
-
getAddressLine1
public String getAddressLine1()
Primary address information, typically street name and building number.- Returns:
- Primary address information, typically street name and building number.
-
getAddressLine2
public String getAddressLine2()
Secondary address information, like apartment, suite, or unit number.- Returns:
- Secondary address information, like apartment number or suite number.
-
getAddressLine3
public String getAddressLine3()
Tertiary address information, typically for international addresses.- Returns:
- Tertiary address information, typically for international addresses.
-
getCity
public String getCity()
The city, town or village of this address.- Returns:
- The city, town or village of this address.
-
getCounty
public String getCounty()
The county of this address.- Returns:
- The county of this address.
-
getStateProvinceRegion
public String getStateProvinceRegion()
The state, province or region of this address.- Returns:
- The state, province or region of this address.
-
getCountry
public String getCountry()
The country for this address.- Returns:
- The country for this address.
-
getPostalCode
public String getPostalCode()
Postal code or ZIP code for this address.- Returns:
- Postal code or ZIP code for this address.
-
getPhonePrimary
public Phone getPhonePrimary()
The primaryphone numberfor this address.- Returns:
- The primary
phone numberfor this address.
-
getPhoneSecondary
public Phone getPhoneSecondary()
The secondaryphone numberfor this address.- Returns:
- The secondary
phone numberfor this address.
-
getPhoneFax
public Phone getPhoneFax()
Thefax numberfor this address.- Returns:
- The
fax numberfor this address.
-
isActive
public boolean isActive()
Whether this address is an active address of the owner.- Returns:
- Whether this address is an active address of the owner.
-
getVisibleToChildren
public String getVisibleToChildren()
Whether this address is visible to Children.- Returns:
- Whether this address is visible to Children.
- See Also:
DefaultAccountAddressChildrenVisibilityType
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
public void setId(String id)
The context ID of the relationship.- Parameters:
id- the context ID of the relationship
-
setName
public void setName(String name)
The user-provided name of the address.- Parameters:
name- the user-provided name of the address
-
setType
public void setType(String type)
The type of address for this account. For example, in a B2B context, this type may beDefaultB2BAccountAddressTypes.SHIP_TOorDefaultB2BAccountAddressTypes.BILL_TO- Parameters:
type- the type of address for this account- See Also:
AccountAddressType
-
setDefault
public void setDefault(boolean isDefault)
Specifies whether or not this is the default for this type of address.- Parameters:
isDefault- whether or not this is the default for this type of address
-
setAccountRef
public void setAccountRef(AccountRef accountRef)
The account in the relationship.- Parameters:
account- the account in the relationship
-
setFirstName
public void setFirstName(String firstName)
The first name of the individual at this address.- Parameters:
firstName- The first name of the individual at this address.
-
setLastName
public void setLastName(String lastName)
The last name of the individual at this address.- Parameters:
lastName- The last name of the individual at this address.
-
setFullName
public void setFullName(String fullName)
The combined names of the individual at this address. It is considered better UX to use a full name field in place of separate first and last name fields.- Parameters:
fullName- The combined names of the individual at this address
-
setEmailAddress
public void setEmailAddress(String emailAddress)
The email address of the individual at this physical address.- Parameters:
emailAddress- The email address of the individual at this physical address.
-
setCompanyName
public void setCompanyName(String companyName)
The name of the company at this address.- Parameters:
companyName- The name of the company at this address.
-
setAddressLine1
public void setAddressLine1(String addressLine1)
Primary address information, typically street name and building number.- Parameters:
addressLine1- Primary address information, typically street name and building number.
-
setAddressLine2
public void setAddressLine2(String addressLine2)
Secondary address information, like apartment, suite, or unit number.- Parameters:
addressLine2- Secondary address information, like apartment number or suite number.
-
setAddressLine3
public void setAddressLine3(String addressLine3)
Tertiary address information, typically for international addresses.- Parameters:
addressLine3- Tertiary address information, typically for international addresses.
-
setCity
public void setCity(String city)
The city, town or village of this address.- Parameters:
city- The city, town or village of this address.
-
setCounty
public void setCounty(String county)
The county of this address.- Parameters:
county- The county of this address.
-
setStateProvinceRegion
public void setStateProvinceRegion(String stateProvinceRegion)
The state, province or region of this address.- Parameters:
stateProvinceRegion- The state, province or region of this address.
-
setCountry
public void setCountry(String country)
The country for this address.- Parameters:
country- The country for this address.
-
setPostalCode
public void setPostalCode(String postalCode)
Postal code or ZIP code for this address.- Parameters:
postalCode- Postal code or ZIP code for this address.
-
setPhonePrimary
public void setPhonePrimary(Phone phonePrimary)
The primaryphone numberfor this address.- Parameters:
phonePrimary- The primaryphone numberfor this address.
-
setPhoneSecondary
public void setPhoneSecondary(Phone phoneSecondary)
The secondaryphone numberfor this address.- Parameters:
phoneSecondary- The secondaryphone numberfor this address.
-
setPhoneFax
public void setPhoneFax(Phone phoneFax)
Thefax numberfor this address.- Parameters:
phoneFax- Thefax numberfor this address.
-
setActive
public void setActive(boolean isActive)
Whether this address is an active address of the owner.- Parameters:
isActive- Whether this address is an active address of the owner.
-
setVisibleToChildren
public void setVisibleToChildren(String visibleToChildren)
Whether this address is visible to Children.- Parameters:
visibleToChildren- Whether this address is visible to Children.- See Also:
DefaultAccountAddressChildrenVisibilityType
-
setAdditionalAttributes
public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
Map holding any additional attributes passed in the request not matching any defined properties.
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
canEqual
protected boolean canEqual(Object other)
-
-