public class UserSegmentation extends Object implements IUserSegmentationSPI
Modifier and Type | Field and Description |
---|---|
static String |
QUERY_BY_GROUP
Named query that finds the instance of a given group.
|
static String |
QUERY_BY_JOURNEY_STAGE
Named query that finds the instance of a given journey stage.
|
static String |
QUERY_BY_NEXT_MEMBERS_GENERATION
Named query that finds the instances of a given service instance that match a given name.
|
static String |
QUERY_BY_SERVICE_INSTANCE
Named query that finds the instances of a given service instance.
|
static String |
QUERY_BY_SERVICE_INSTANCE_AND_LIKE_NAME
Named query that finds the instances of a given service instance that match a given name.
|
static String |
QUERY_BY_SERVICE_INSTANCE_AND_NAME
Named query that finds the instance of a given service instance with a given name.
|
Constructor and Description |
---|
UserSegmentation()
Default constructor.
|
UserSegmentation(JourneyStage stage)
Creates a new segmentation for the given journey stage (identifier).
|
Modifier and Type | Method and Description |
---|---|
Collection<EventAnalyticsDashboard> |
getDashboards()
Get dashboards that have this User Segementation.
|
String |
getId()
Returns the id.
|
long |
getMembershipCacheExpirationMillis()
Returns the member cache expiration in milliseconds.
|
String |
getName()
Returns the name.
|
Date |
getNextMembersGeneration()
Returns the next members generation.
|
Collection<EventAnalyticsReport> |
getReports()
Get reports that have this User Segementation.
|
org.json.JSONObject |
getSegmentationFilter()
Returns the segmentation filter.
|
String |
getServiceInstanceId()
Returns the service instance identifier.
|
boolean |
isJourneyStageSegmentation()
Returns whether this is an automatically created segmentation for a journey stage.
|
void |
setId(String id)
Sets the id.
|
void |
setName(String name)
Sets the name.
|
void |
setNextMembersGeneration(Date nextMembersGeneration)
Sets the next members generation.
|
void |
setSegmentationFilter(org.json.JSONObject segmentationFilter)
Sets the segmentation filter.
|
void |
setServiceInstanceId(String serviceInstanceId)
Sets the service instance identifier.
|
public static final String QUERY_BY_SERVICE_INSTANCE
si
(service instance id) and returns multiple instances.public static final String QUERY_BY_SERVICE_INSTANCE_AND_NAME
si
(service instance id) and name
(segmentation name)
and returns a single instance.public static final String QUERY_BY_SERVICE_INSTANCE_AND_LIKE_NAME
si
(service instance id) and name
(segmentation name).public static final String QUERY_BY_NEXT_MEMBERS_GENERATION
si
(service instance id) and name
(segmentation name).public static final String QUERY_BY_GROUP
groupId
(group id) and returns a single instance.public static final String QUERY_BY_JOURNEY_STAGE
stageId
(stage id) and returns a single instance.public UserSegmentation()
public UserSegmentation(JourneyStage stage) throws PortalException
stage
- the journey stage identifier.PortalException
public String getName()
getName
in interface IUserSegmentation
public void setName(String name)
name
- the name value to set.public String getServiceInstanceId()
getServiceInstanceId
in interface IUserSegmentation
public void setServiceInstanceId(String serviceInstanceId)
serviceInstanceId
- the service instance identifier value to set.public org.json.JSONObject getSegmentationFilter()
public void setSegmentationFilter(org.json.JSONObject segmentationFilter)
segmentationFilter
- the segmentation filter value to set.public String getId()
getId
in interface IUserSegmentation
public void setId(String id)
id
- the id.public Collection<EventAnalyticsReport> getReports()
public Collection<EventAnalyticsDashboard> getDashboards()
public long getMembershipCacheExpirationMillis()
IUserSegmentationSPI
getMembershipCacheExpirationMillis
in interface IUserSegmentationSPI
public Date getNextMembersGeneration()
IUserSegmentationSPI
getNextMembersGeneration
in interface IUserSegmentationSPI
public void setNextMembersGeneration(Date nextMembersGeneration)
IUserSegmentationSPI
setNextMembersGeneration
in interface IUserSegmentationSPI
nextMembersGeneration
- the next members generation.public boolean isJourneyStageSegmentation()
IUserSegmentationSPI
isJourneyStageSegmentation
in interface IUserSegmentationSPI
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.