Class CustomerSegmentRef
java.lang.Object
com.broadleafcommerce.customer.client.domain.CustomerSegmentRef
- All Implemented Interfaces:
Serializable
A light version of
CustomerSegment.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIf thecustomerSegmentTypeisCustomerSegmentType.EXTERNAL, then this stores the identifier for the external segment.getId()getName()The name of this customer segment.The priority of this customer segment.inthashCode()voidsetExternalRef(String externalRef) If thecustomerSegmentTypeisCustomerSegmentType.EXTERNAL, then this stores the identifier for the external segment.voidvoidThe name of this customer segment.voidsetPriority(Integer priority) The priority of this customer segment.toString()
-
Constructor Details
-
CustomerSegmentRef
public CustomerSegmentRef()
-
-
Method Details
-
getId
-
getName
The name of this customer segment.- Returns:
- The customer segment name.
-
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
If thecustomerSegmentTypeisCustomerSegmentType.EXTERNAL, then this stores the identifier for the external segment. -
setId
-
setName
The name of this customer segment. -
setPriority
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
If thecustomerSegmentTypeisCustomerSegmentType.EXTERNAL, then this stores the identifier for the external segment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-