Class CustomerSegmentRef

java.lang.Object
com.broadleafcommerce.customer.client.domain.CustomerSegmentRef
All Implemented Interfaces:
Serializable

public class CustomerSegmentRef extends Object implements Serializable
A light version of CustomerSegment.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • CustomerSegmentRef

      public CustomerSegmentRef()
  • Method Details

    • getId

      public String getId()
    • getName

      public String getName()
      The name of this customer segment.
      Returns:
      The customer segment name.
    • getPriority

      public Integer getPriority()
      The priority of this customer segment. This is to enforce ordering when a customer may belong to multiple segments. A lower value indicates higher priority.
      Returns:
      The customer segment priority.
    • getExternalRef

      public String getExternalRef()
      If the customerSegmentType is CustomerSegmentType.EXTERNAL, then this stores the identifier for the external segment.
    • setId

      public void setId(String id)
    • setName

      public void setName(String name)
      The name of this customer segment.
    • setPriority

      public void setPriority(Integer priority)
      The priority of this customer segment. This is to enforce ordering when a customer may belong to multiple segments. A lower value indicates higher priority.
    • setExternalRef

      public void setExternalRef(String externalRef)
      If the customerSegmentType is CustomerSegmentType.EXTERNAL, then this stores the identifier for the external segment.
    • 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