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.
|
UserSegmentationData.ISegmentationFilter |
getResult()
Returns the created query.
|
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 getResult()
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.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.