Class ConditionFactory
- java.lang.Object
-
- org.apache.unomi.graphql.condition.factories.ConditionFactory
-
- Direct Known Subclasses:
EventConditionFactory
,ProfileAliasConditionFactory
,ProfileConditionFactory
,TopicConditionFactory
public class ConditionFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
conditionTypeId
protected DefinitionsService
definitionsService
protected graphql.schema.DataFetchingEnvironment
environment
-
Constructor Summary
Constructors Constructor Description ConditionFactory(String conditionTypeId, graphql.schema.DataFetchingEnvironment environment)
-
Method Summary
-
-
-
Field Detail
-
environment
protected graphql.schema.DataFetchingEnvironment environment
-
definitionsService
protected DefinitionsService definitionsService
-
conditionTypeId
protected String conditionTypeId
-
-
Constructor Detail
-
ConditionFactory
public ConditionFactory(String conditionTypeId, graphql.schema.DataFetchingEnvironment environment)
-
-
Method Detail
-
matchAllCondition
public Condition matchAllCondition()
-
propertyCondition
public Condition propertyCondition(String propertyName, String operator, String propertyValueName, Object propertyValue)
-
propertyCondition
public Condition propertyCondition(String propertyName, String operator, Object propertyValue)
-
integerPropertyCondition
public Condition integerPropertyCondition(String propertyName, Object propertyValue)
-
integerPropertyCondition
public Condition integerPropertyCondition(String propertyName, String operator, Object propertyValue)
-
datePropertyCondition
public Condition datePropertyCondition(String propertyName, String operator, Object propertyValue)
-
propertiesCondition
public Condition propertiesCondition(String propertyName, String operator, List<String> propertyValues)
-
getConditionType
public ConditionType getConditionType(String typeId)
-
filtersToCondition
public <INPUT> Condition filtersToCondition(List<INPUT> inputFilters, Function<INPUT,Condition> function, String operator)
-
-