Class PropertyFilter
java.lang.Object
com.aquima.interactions.process.search.PropertyFilter
- All Implemented Interfaces:
IPropertyFilter
- Direct Known Subclasses:
AssigneeUserFilter
This class may be used to create a filter.
- Since:
- 9.1
- Author:
- A.Pragt
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyFilter
(boolean loweredIndex) PropertyFilter
(FilterOperator operator) Constructs a filter with the specified filter operator.PropertyFilter
(FilterOperator operator, boolean loweredIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCondition
(IValue value) This method adds a equals condition to the filter.void
addCondition
(IValue value, ConditionOperator operator) This method adds a condition to the filter.void
addCondition
(StringValue value, MatchMode matchMode, boolean negate) This is a convenience method that adds a LIKE condition.This method returns all the conditions of the filter.This method returns the operator of the filter.boolean
This method returns the operator of the filter.void
setOperator
(FilterOperator operator) This method sets the operator of the filter.
-
Constructor Details
-
PropertyFilter
public PropertyFilter() -
PropertyFilter
Constructs a filter with the specified filter operator.- Parameters:
operator
- The operator, not null.
-
PropertyFilter
public PropertyFilter(boolean loweredIndex) - Parameters:
loweredIndex
- Boolean indicating if the property should behave with a lowered index, may not be null
-
PropertyFilter
- Parameters:
operator
- The operator of the filter, may not be nullloweredIndex
- Boolean indicating if the property should behave with a lowered index, may not be null
-
-
Method Details
-
getOperator
This method returns the operator of the filter.- Returns:
- The operator of the filter, never null.
-
setOperator
This method sets the operator of the filter.- Parameters:
operator
- The operator of the filter, not null.
-
hasLoweredIndex
public boolean hasLoweredIndex()This method returns the operator of the filter.- Returns:
- The operator of the filter.
-
getConditions
This method returns all the conditions of the filter.- Returns:
- The conditions of the filter.
-
addCondition
This method adds a equals condition to the filter.- Specified by:
addCondition
in interfaceIPropertyFilter
- Parameters:
value
- The value to be equal to, not null.
-
addCondition
This method adds a condition to the filter.- Parameters:
value
- The value to compare, may be null.operator
- The operator to use during comparison, not null.
-
addCondition
This is a convenience method that adds a LIKE condition.- Specified by:
addCondition
in interfaceIPropertyFilter
- Parameters:
value
- the string value to match againstmatchMode
- the match modenegate
- whether to negate the condition
-