Package org.apache.unomi.api.segments
Class Segment
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.api.MetadataItem
org.apache.unomi.api.segments.Segment
- All Implemented Interfaces:
Serializable
A dynamically evaluated group of similar profiles in order to categorize the associated users. To be considered part of a given segment, users must satisfies
the segment’s condition. If they match, users are automatically added to the segment. Similarly, if at any given point during, they cease to satisfy the segment’s condition,
they are automatically removed from it.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.unomi.api.MetadataItem
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the condition that users'Profile
must satisfy in order to be considered member of this Segment.void
setCondition
(Condition condition) Sets the condition that users'Profile
must satisfy in order to be considered member of this Segment.Methods inherited from class org.apache.unomi.api.MetadataItem
getMetadata, getScope, setMetadata
Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Field Details
-
ITEM_TYPE
The Segment ITEM_TYPE.
-
-
Constructor Details
-
Segment
public Segment()Instantiates a new Segment. -
Segment
Instantiates a new Segment with the specified metadata.- Parameters:
metadata
- the metadata
-
-
Method Details
-
getCondition
Retrieves the condition that users'Profile
must satisfy in order to be considered member of this Segment.- Returns:
- the condition that users must match
-
setCondition
Sets the condition that users'Profile
must satisfy in order to be considered member of this Segment.- Parameters:
condition
- the condition that users must match
-