public class UserSegmentationData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UserSegmentationData.CreateQueryResult
Result of create query.
|
static interface |
UserSegmentationData.ISegmentationFilter
Segmentation filter.
|
Modifier and Type | Method and Description |
---|---|
static UserSegmentationData |
create(ServiceInstanceConfig serviceInstance,
org.json.JSONObject jsonData)
Creates a new data, from the given service instance and JSON object.
|
boolean |
evaluate(FlowContext flowContext)
Evaluates this filter against the given flow context.
|
boolean |
evaluate(UserSegmentationData.ISegmentationFilter filter,
FlowContext flowContext,
MonitorUser monUser)
Evaluates this filter against the given flow context.
|
Tuple2<ISearchQueryFilter,Boolean> |
getBigDataFilter(ISearchQueryFilter... additionalFilters)
Returns the big data filter for search user segmentation.
|
static ISearchQueryFilter |
getEmptyBigDataFilter(ServiceInstanceConfig serviceInstanceConfig)
Returns the empty big data filter to bring all users with the default fields and in context.
|
UserSegmentationData.ISegmentationFilter |
getInternalFilter()
Returns the internal filter object.
|
ServiceInstanceConfig |
getServiceInstanceConfig()
Returns the serviceInstanceConfig.
|
static ISearchQueryFilter |
getTimeIntervalFilter(org.json.JSONObject valueJSON,
String bigDataFieldId,
DocumentTypeField key,
DocumentTypeField value,
UserAttribute attr)
Method that creates the time interval filter.
|
org.json.JSONObject |
toJSON()
Returns the JSON object that represents these filters.
|
public static UserSegmentationData create(ServiceInstanceConfig serviceInstance, org.json.JSONObject jsonData) throws PortalException
null
if the created instance is a no-op filter.serviceInstance
- the service instance.jsonData
- the JSON data.null
if the created instance is a no-op filter.PortalException
public UserSegmentationData.ISegmentationFilter getInternalFilter()
public Tuple2<ISearchQueryFilter,Boolean> getBigDataFilter(ISearchQueryFilter... additionalFilters) throws PortalException
additionalFilters
- the additional filters - it's doesn't bring from user segmentation data.PortalException
public static ISearchQueryFilter getEmptyBigDataFilter(ServiceInstanceConfig serviceInstanceConfig) throws PortalException
PortalException
public org.json.JSONObject toJSON()
public static ISearchQueryFilter getTimeIntervalFilter(org.json.JSONObject valueJSON, String bigDataFieldId, DocumentTypeField key, DocumentTypeField value, UserAttribute attr)
valueJSON
- the value.bigDataFieldId
- the big data field identifier.key
- the key field.value
- the value field.public boolean evaluate(FlowContext flowContext) throws PortalException
true
if the given context matches this filter or false
otherwise.flowContext
- the flow context.true
if the given context matches this filter or false
otherwise.PortalException
public boolean evaluate(UserSegmentationData.ISegmentationFilter filter, FlowContext flowContext, MonitorUser monUser)
filter
- the filterflowContext
- the flow context.true
if the given context matches this filter or false
otherwise.public ServiceInstanceConfig getServiceInstanceConfig()
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.