Class CustomerSegmentRef
java.lang.Object
com.broadleafcommerce.customer.domain.CustomerSegmentRef
- All Implemented Interfaces:
Serializable
A light version of
CustomerSegment
.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If thecustomerSegmentType
isCustomerSegmentType.EXTERNAL
, then this stores the identifier for the external segment.getId()
getName()
The name of this customer segment.The priority of this customer segment.int
hashCode()
void
setExternalRef
(String externalRef) If thecustomerSegmentType
isCustomerSegmentType.EXTERNAL
, then this stores the identifier for the external segment.void
void
The name of this customer segment.void
setPriority
(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 thecustomerSegmentType
isCustomerSegmentType.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 thecustomerSegmentType
isCustomerSegmentType.EXTERNAL
, then this stores the identifier for the external segment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-