Class SegmentMember

java.lang.Object
com.broadleafcommerce.customer.domain.SegmentMember
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class SegmentMember extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Domain object representing a customer/customer segment relationship.
See Also:
  • Constructor Details

    • SegmentMember

      public SegmentMember()
  • Method Details

    • getId

      public String getId()
      The id of this SegmentMember
      Returns:
      The SegmentMember id
    • getSource

      public String getSource()
      The source of creation of this segment customer relationship.
      Returns:
      The source of creation of this segment customer relationship.
      See Also:
    • getCustomerSegment

      public CustomerSegment getCustomerSegment()
      The customer segment the customer belongs to.
      Returns:
      The customer segment the customer belongs to.
    • getCustomer

      public Customer getCustomer()
      The customer assigned to the customerSegment.
      Returns:
      The customer assigned to the customer segment.
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
    • setId

      public void setId(String id)
      The id of this SegmentMember
    • setSource

      public void setSource(String source)
      The source of creation of this segment customer relationship.
      See Also:
    • setCustomerSegment

      public void setCustomerSegment(CustomerSegment customerSegment)
      The customer segment the customer belongs to.
    • setCustomer

      public void setCustomer(Customer customer)
      The customer assigned to the customerSegment.
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object