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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe 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.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()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.The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data.The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data.The data restrictions that control the data this user is permitted to access.Specifies the status of the account member.inthashCode()booleanisActive()Deprecated, for removal: This API element is subject to removal in a future version.in favor ofstatussince Customer Services 2.1.0, Release Train 2.3.0voidsetAccount(Account account) The account in the relationship.voidsetAccountRoleIds(Set<String> accountRoleIds) The customer's roles within the account.voidsetActive(boolean active) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofstatussince Customer Services 2.1.0, Release Train 2.3.0voidsetAdditionalPhones(List<AdditionalPhone> additionalPhones) Deprecated.Use the customer's additional phones insteadvoidsetAttributes(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.voidThe context ID of the relationship.voidThe main phone number of the account member if they are not a registered customer at the time of invite.voidsetRestrictedPermissions(List<RestrictedPermission> restrictedPermissions) The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data.voidsetRestrictedRoles(List<RestrictedRole> restrictedRoles) The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data.voidsetRestrictions(List<AccessRestriction> restrictions) The data restrictions that control the data this user is permitted to access.voidTemporary setter override to keepactivein sync withstatuswithout having to callsetActive(boolean), subject to removal whenactiveis removed.toString()
-
Constructor Details
-
AccountMember
public AccountMember()
-
-
Method Details
-
isActive
@Deprecated(forRemoval=true, since="Customer Services 2.1.0, Release Train 2.3.0") public boolean isActive()Deprecated, for removal: This API element is subject to removal in a future version.in favor ofstatussince Customer Services 2.1.0, Release Train 2.3.0Determines whether the account member is active. -
setActive
@Deprecated(forRemoval=true, since="Customer Services 2.1.0, Release Train 2.3.0") public void setActive(boolean active) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofstatussince Customer Services 2.1.0, Release Train 2.3.0 -
setStatus
Temporary setter override to keepactivein sync withstatuswithout having to callsetActive(boolean), subject to removal whenactiveis removed. -
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
-
getStatus
Specifies the status of the account member.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
- See Also:
-
getRestrictions
The data restrictions that control the data this user is permitted to access.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
-
getRestrictedRoles
The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
-
getRestrictedPermissions
The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
-
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
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
-
setRestrictions
The data restrictions that control the data this user is permitted to access.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
-
setRestrictedRoles
The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
-
setRestrictedPermissions
The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data.- Since:
- Customer Services 2.1.0, Release Train 2.3.0
-
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 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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-