Package lumis.service.analytics.commons
Class FlowContextFilterUtils
- java.lang.Object
-
- lumis.service.analytics.commons.FlowContextFilterUtils
-
public class FlowContextFilterUtils extends Object
Class to help filter flow event and segmentation.- Since:
- 12.0.0
- Version:
- $Revision: 24121 $ $Date: 2020-09-08 12:14:24 -0300 (Tue, 08 Sep 2020) $
-
-
Constructor Summary
Constructors Constructor Description FlowContextFilterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkMatchValue(FlowContext flowContext, Operator operator, IMonitorField.DataType dataType, String subFieldId, Object filterValue, Collection storedValue)
Check if filter value match field value that comes from big data.static boolean
evalueteNotIndexedValue(FlowContext flowContext, Operator operator, IMonitorField.DataType dataType, String subFieldId, Object filterValue, Collection persistedValue)
Evaluates if filter values matches with persisted field value that comes from relational database.static boolean
evaluteEventPropertyFilter(FlowContext flowContext, Operator operator, IMonitorField monitorField, String subFieldId, Object valueFilter)
Check if event field value match with filter.static List<Object>
getEventPropertyValue(String key, FlowContext flowContext)
Returns event field value in flowContext.static boolean
isFlowContextAcceptedByServiceInstance(FlowContext flowContext, ServiceInstanceConfig serviceInstanceConfig)
Check if event flow isn't in current service instance analytics channel chain.
-
-
-
Method Detail
-
isFlowContextAcceptedByServiceInstance
public static boolean isFlowContextAcceptedByServiceInstance(FlowContext flowContext, ServiceInstanceConfig serviceInstanceConfig) throws PortalException
Check if event flow isn't in current service instance analytics channel chain.- Parameters:
flowContext
- the flow context.serviceInstanceConfig
- the service instance.- Returns:
- false whether event flow is in current service instance analytics channel chain.
- Throws:
PortalException
- Since:
- 12.0.0
-
evaluteEventPropertyFilter
public static boolean evaluteEventPropertyFilter(FlowContext flowContext, Operator operator, IMonitorField monitorField, String subFieldId, Object valueFilter) throws PortalException
Check if event field value match with filter.- Parameters:
flowContext
- the flow context with event field values.operator
- the operator of filter.monitorField
- the event field.subFieldId
- the event sub field.remapFieldId
-valueFilter
- expected filter value.- Returns:
- match field result.
- Throws:
PortalException
- Since:
- 12.0.0
-
checkMatchValue
public static boolean checkMatchValue(FlowContext flowContext, Operator operator, IMonitorField.DataType dataType, String subFieldId, Object filterValue, Collection storedValue) throws PortalException
Check if filter value match field value that comes from big data.- Parameters:
flowContext
- the flow context.operator
- the operator.dataType
- the dataType.subFieldId
- the subField identifier.filterValue
- the filter value.storedValue
- the stored value.- Returns:
- true if matches.
- Throws:
PortalException
- Since:
- 12.0.0
-
getEventPropertyValue
public static List<Object> getEventPropertyValue(String key, FlowContext flowContext)
Returns event field value in flowContext.- Parameters:
key
- the event field identifier.flowContext
- the flow context.- Returns:
- the event field value.
- Since:
- 12.0.0
-
evalueteNotIndexedValue
public static boolean evalueteNotIndexedValue(FlowContext flowContext, Operator operator, IMonitorField.DataType dataType, String subFieldId, Object filterValue, Collection persistedValue) throws PortalException
Evaluates if filter values matches with persisted field value that comes from relational database. This methods transforms your parameters persisted field value to simulates that comes from big data.- Parameters:
flowContext
- the flow context.operator
- the operator.dataType
- the dataType.subFieldId
- subField identifier.filterValue
- the filter value.persistedValue
- the persisted value.- Returns:
- true if matches.
- Throws:
PortalException
- Since:
- 12.0.0
-
-