Class BinaryLogicalSearch

java.lang.Object
com.flowable.microsoft.graph.impl.search.AbstractSearch
com.flowable.microsoft.graph.impl.search.BinaryLogicalSearch
All Implemented Interfaces:
Search
Direct Known Subclasses:
AndSearch, OrSearch

public abstract class BinaryLogicalSearch extends AbstractSearch
Abstract superclass for binary logical operations, that is "AND" and "OR" operations.

This is inspired by the Spring LDAP AbstractBinaryLogicalFilter implementation and adjusted for OData.

  • Constructor Details

    • BinaryLogicalSearch

      public BinaryLogicalSearch()
  • Method Details

    • encode

      public StringBuilder encode(StringBuilder sb)
      Description copied from interface: Search
      Encodes the search to a StringBuilder.
      Parameters:
      sb - The StringBuilder to encode the search to
      Returns:
      The same StringBuilder as was given
    • getLogicalOperator

      protected abstract String getLogicalOperator()
      Implement this in subclass to return the logical operator, for example "and".
      Returns:
      the logical operator.
    • append

      public final BinaryLogicalSearch append(Search query)
      Add a query to this logical operation.
      Parameters:
      query - the query to add.
      Returns:
      This instance.
    • appendAll

      public final BinaryLogicalSearch appendAll(Collection<Search> subQueries)