Class AccountMember
java.lang.Object
com.broadleafcommerce.notification.service.provider.external.domain.user.AccountMember
Represents a 
Customer's relationship with an Account, their contact
 info, & the role that they have for the account.- Author:
- Susana Cruz (susanaccruz)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanThe account in the relationship.The customer's roles within the account.Additional attributes that are used to describe the account membercom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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()com.broadleafcommerce.order.common.domain.PhonegetPhone()The main phone number of the account member if they are not a registered customer at the time of invite.inthashCode()booleanisActive()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).voidsetAccount(Account account) The account in the relationship.voidsetAccountRoleIds(Set<String> accountRoleIds) The customer's roles within the account.voidsetActive(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).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.voidsetCustomer(Customer customer) The customer in the relationship.voidsetDefaultCommunicationPreference(String defaultCommunicationPreference) The default communication preference of the account member.voidThe email address of the account member if they are not a registered customer at the time of invite.voidvoidsetPhone(com.broadleafcommerce.order.common.domain.Phone phone) The main phone number of the account member if they are not a registered customer at the time of invite.toString()
- 
Constructor Details- 
AccountMemberpublic AccountMember()
 
- 
- 
Method Details- 
getId
- 
getAccountThe account in the relationship.- Returns:
- the account in the relationship
 
- 
getCustomerThe customer in the relationship.- Returns:
- the customer in the relationship
 
- 
getAccountRoleIdsThe customer's roles within the account. These map to role IDs in the auth service.- Returns:
- The customer's roles within the account.
 
- 
getEmailThe 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
 
- 
getPhonepublic com.broadleafcommerce.order.common.domain.Phone 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
 
- 
getDefaultCommunicationPreferenceThe default communication preference of the account member.- Returns:
- the default communication preference of the account member
 
- 
getAttributesAdditional attributes that are used to describe the account member- Returns:
- additional attributes that are used to describe the account member
 
- 
getContextStatepublic com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Returns:
- a subset of Trackinginformation to expose the context state for this object
 
- 
isActivepublic 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
- 
setAccountThe account in the relationship.- Parameters:
- accountRef- the account in the relationship
 
- 
setCustomerThe customer in the relationship.- Parameters:
- customer- the customer in the relationship
 
- 
setAccountRoleIdsThe customer's roles within the account. These map to role IDs in the auth service.- Parameters:
- accountRoleIds- The customer's roles within the account.
 
- 
setEmailThe 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
 
- 
setPhonepublic void setPhone(com.broadleafcommerce.order.common.domain.Phone phone) 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
 
- 
setDefaultCommunicationPreferenceThe default communication preference of the account member.- Parameters:
- defaultCommunicationPreference- the default communication preference of the account member
 
- 
setAttributesAdditional attributes that are used to describe the account member- Parameters:
- attributes- additional attributes that are used to describe the account member
 
- 
setContextStatepublic void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Parameters:
- contextState- a subset of- Trackinginformation to expose the context state for this object
 
- 
setActivepublic 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
- 
hashCodepublic int hashCode()
- 
toString
 
-