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 a
Customer's
relationship with an Account
, their
contact info, & the role that they have for the account.- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The account in the relationship.The customer's roles within the account.Deprecated.Use the customer's additional phones insteadAdditional attributes that are used to describe the account membercom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The customer in the relationship.The default communication preference of the account member.getEmail()
The email address of the account member if they are not a registered customer at the time of invite.getId()
The context ID of the relationship.getPhone()
The main phone number of the account member if they are not a registered customer at the time of invite.int
hashCode()
boolean
isActive()
Specifies whether this account member represents an invite (false) or an actual account member who has accepted the invite or was added via the Admin portal (true).void
setAccount
(Account account) The account in the relationship.void
setAccountRoleIds
(Set<String> accountRoleIds) The customer's roles within the account.void
setActive
(boolean active) Specifies whether this account member represents an invite (false) or an actual account member who has accepted the invite or was added via the Admin portal (true).void
setAdditionalPhones
(List<AdditionalPhone> additionalPhones) Deprecated.Use the customer's additional phones insteadvoid
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
setCustomer
(Customer customer) The customer in the relationship.void
setDefaultCommunicationPreference
(String defaultCommunicationPreference) The default communication preference of the account member.void
The email address of the account member if they are not a registered customer at the time of invite.void
The context ID of the relationship.void
The main phone number of the account member if they are not a registered customer at the time of invite.toString()
-
Constructor Details
-
AccountMember
public AccountMember()
-
-
Method Details
-
getId
The context ID of the relationship.- Returns:
- the context ID of the relationship
-
getAccount
The account in the relationship.- Returns:
- the account in the relationship
-
getCustomer
The customer in the relationship.- Returns:
- the customer in the relationship
-
getAccountRoleIds
The customer's roles within the account. These map to role IDs in the auth service.- Returns:
- The customer's roles within the account.
-
getEmail
The email address of the account member if they are not a registered customer at the time of invite.- Returns:
- the email address of the account member
-
getPhone
The main phone number of the account member if they are not a registered customer at the time of invite.- Returns:
- the main phone number of the account member
-
getAdditionalPhones
Deprecated.Use the customer's additional phones insteadAdditional phone numbers associated with the account member.- Returns:
- additional phone numbers associated with the account member
-
getDefaultCommunicationPreference
The default communication preference of the account member.- Returns:
- the default communication preference of the account member
-
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
-
isActive
public boolean isActive()Specifies whether this account member represents an invite (false) or an actual account member who has accepted the invite or was added via the Admin portal (true).- Returns:
- whether the account member represents an invite (false) or an actual account member (true)
-
setId
The context ID of the relationship.- Parameters:
id
- the context ID of the relationship
-
setAccount
The account in the relationship.- Parameters:
accountRef
- the account in the relationship
-
setCustomer
The customer in the relationship.- Parameters:
customer
- the customer in the relationship
-
setAccountRoleIds
The customer's roles within the account. These map to role IDs in the auth service.- Parameters:
accountRoleIds
- The customer's roles within the account.
-
setEmail
The email address of the account member if they are not a registered customer at the time of invite.- Parameters:
email
- the email address of the account member
-
setPhone
The main phone number of the account member if they are not a registered customer at the time of invite.- Parameters:
phone
- the main phone number of the account member
-
setAdditionalPhones
Deprecated.Use the customer's additional phones insteadAdditional phone numbers associated with the account member.- Parameters:
additionalPhones
- additional phone numbers associated with the account member
-
setDefaultCommunicationPreference
The default communication preference of the account member.- Parameters:
communicationPreference
- the default communication preference of the account member
-
setAttributes
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
-
setActive
public void setActive(boolean active) Specifies whether this account member represents an invite (false) or an actual account member who has accepted the invite or was added via the Admin portal (true).- Parameters:
active
- whether the account member represents an invite (false) or an actual account member (true)N
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-