Class AccountMember
- java.lang.Object
 - 
- com.broadleafcommerce.customer.domain.AccountMember
 
 
- 
- All Implemented Interfaces:
 com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class AccountMember extends Object implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
Representation of aCustomer'srelationship with anAccount, their contact info, & the role that they have for the account.- Author:
 - Chris Kittrell (ckittrell)
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AccountMember() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AccountRefgetAccountRef()The account in the relationship.List<AdditionalPhone>getAdditionalPhones()Additional phone numbers associated with the account member.Map<String,Object>getAttributes()Additional attributes that are used to describe the account membercom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()A subset ofTrackinginformation to expose the context state for this object.CustomerRefgetCustomerRef()The customer in the relationship.StringgetEmail()The email address of the account member.StringgetId()The context ID of the relationship.PhonegetPhone()The main phone number of the account member.AccountRoleRefgetRoleRef()The customer's role within the account.inthashCode()voidsetAccountRef(AccountRef accountRef)The account in the relationship.voidsetAdditionalPhones(List<AdditionalPhone> additionalPhones)Additional phone numbers associated with the account member.voidsetAttributes(Map<String,Object> attributes)Additional attributes that are used to describe the account membervoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)A subset ofTrackinginformation to expose the context state for this object.voidsetCustomerRef(CustomerRef customerRef)The customer in the relationship.voidsetEmail(String email)The email address of the account member.voidsetId(String id)The context ID of the relationship.voidsetPhone(Phone phone)The main phone number of the account member.voidsetRoleRef(AccountRoleRef roleRef)The customer's role within the account.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getId
public String getId()
The context ID of the relationship.- Returns:
 - the context ID of the relationship
 
 
- 
getAccountRef
public AccountRef getAccountRef()
The account in the relationship.- Returns:
 - the account in the relationship
 
 
- 
getCustomerRef
public CustomerRef getCustomerRef()
The customer in the relationship.- Returns:
 - the customer in the relationship
 
 
- 
getRoleRef
public AccountRoleRef getRoleRef()
The customer's role within the account.- Returns:
 - the customer's role within the account
 
 
- 
getEmail
public String getEmail()
The email address of the account member.- Returns:
 - the email address of the account member
 
 
- 
getPhone
public Phone getPhone()
The main phone number of the account member.- Returns:
 - the main phone number of the account member
 
 
- 
getAdditionalPhones
public List<AdditionalPhone> getAdditionalPhones()
Additional phone numbers associated with the account member.- Returns:
 - additional phone numbers associated with the account member
 
 
- 
getAttributes
public Map<String,Object> getAttributes()
Additional attributes that are used to describe the account member- Returns:
 - additional attributes that are used to describe the account member
 
 
- 
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
 
- 
setAccountRef
public void setAccountRef(AccountRef accountRef)
The account in the relationship.- Parameters:
 accountRef- the account in the relationship
 
- 
setCustomerRef
public void setCustomerRef(CustomerRef customerRef)
The customer in the relationship.- Parameters:
 customer- the customer in the relationship
 
- 
setRoleRef
public void setRoleRef(AccountRoleRef roleRef)
The customer's role within the account.- Parameters:
 roleRef- the customer's role within the account
 
- 
setEmail
public void setEmail(String email)
The email address of the account member.- Parameters:
 email- the email address of the account member
 
- 
setPhone
public void setPhone(Phone phone)
The main phone number of the account member.- Parameters:
 phone- the main phone number of the account member
 
- 
setAdditionalPhones
public void setAdditionalPhones(List<AdditionalPhone> additionalPhones)
Additional phone numbers associated with the account member.- Parameters:
 additionalPhones- additional phone numbers associated with the account member
 
- 
setAttributes
public void setAttributes(Map<String,Object> attributes)
Additional attributes that are used to describe the account member- Parameters:
 attributes- additional attributes that are used to describe the account member
 
- 
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)
 
 - 
 
 -