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's
relationship 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 boolean
canEqual(Object other)
boolean
equals(Object o)
AccountRef
getAccountRef()
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.ContextState
getContextState()
A subset ofTracking
information to expose the context state for this object.CustomerRef
getCustomerRef()
The customer in the relationship.String
getEmail()
The email address of the account member.String
getId()
The context ID of the relationship.Phone
getPhone()
The main phone number of the account member.AccountRoleRef
getRoleRef()
The customer's role within the account.int
hashCode()
void
setAccountRef(AccountRef accountRef)
The account in the relationship.void
setAdditionalPhones(List<AdditionalPhone> additionalPhones)
Additional phone numbers associated with the account member.void
setAttributes(Map<String,Object> attributes)
Additional attributes that are used to describe the account membervoid
setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
A subset ofTracking
information to expose the context state for this object.void
setCustomerRef(CustomerRef customerRef)
The customer in the relationship.void
setEmail(String email)
The email address of the account member.void
setId(String id)
The context ID of the relationship.void
setPhone(Phone phone)
The main phone number of the account member.void
setRoleRef(AccountRoleRef roleRef)
The customer's role within the account.String
toString()
-
-
-
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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
canEqual
protected boolean canEqual(Object other)
-
-