Class 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:
    Serialized Form
    • Constructor Detail

      • AccountMember

        public AccountMember()
    • 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 of Tracking information to expose the context state for this object.
        Specified by:
        getContextState in interface com.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 of Tracking information to expose the context state for this object.
        Specified by:
        setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
        Parameters:
        contextState - a subset of Tracking information to expose the context state for this object
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object