Class PropertyFilter

java.lang.Object
com.aquima.interactions.process.search.PropertyFilter
All Implemented Interfaces:
IPropertyFilter
Direct Known Subclasses:
AssigneeUserFilter

public class PropertyFilter extends Object implements IPropertyFilter
This class may be used to create a filter.
Since:
9.1
Author:
A.Pragt
  • Constructor Details

    • PropertyFilter

      public PropertyFilter()
    • PropertyFilter

      public PropertyFilter(FilterOperator operator)
      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

      public PropertyFilter(FilterOperator operator, boolean loweredIndex)
      Parameters:
      operator - The operator of the filter, may not be null
      loweredIndex - Boolean indicating if the property should behave with a lowered index, may not be null
  • Method Details

    • getOperator

      public FilterOperator getOperator()
      This method returns the operator of the filter.
      Returns:
      The operator of the filter, never null.
    • setOperator

      public void setOperator(FilterOperator operator)
      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

      public FilterCondition[] getConditions()
      This method returns all the conditions of the filter.
      Returns:
      The conditions of the filter.
    • addCondition

      public void addCondition(IValue value)
      This method adds a equals condition to the filter.
      Specified by:
      addCondition in interface IPropertyFilter
      Parameters:
      value - The value to be equal to, not null.
    • addCondition

      public void addCondition(IValue value, ConditionOperator operator)
      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

      public void addCondition(StringValue value, MatchMode matchMode, boolean negate)
      This is a convenience method that adds a LIKE condition.
      Specified by:
      addCondition in interface IPropertyFilter
      Parameters:
      value - the string value to match against
      matchMode - the match mode
      negate - whether to negate the condition