Class OrSearch
java.lang.Object
com.flowable.microsoft.graph.impl.search.AbstractSearch
com.flowable.microsoft.graph.impl.search.BinaryLogicalSearch
com.flowable.microsoft.graph.impl.search.OrSearch
- All Implemented Interfaces:
Search
A search for a logical OR. Example:
OrSearch search = new OrSearch();
search.or(new SearchTerm("givenName", "Shane");
search.or(new SearchTerm("surname", "Bowen");
System.out.println(search.encode());
would result in: (("givenName:Shane") OR ("surname:Bowen"))
This is inspired by the Spring LDAP OrFilter and adjusted for OData.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringImplement this in subclass to return the logical operator, for example "and".Add a query to the OR expressionMethods inherited from class com.flowable.microsoft.graph.impl.search.BinaryLogicalSearch
append, appendAll, encodeMethods inherited from class com.flowable.microsoft.graph.impl.search.AbstractSearch
encode, toString
-
Constructor Details
-
OrSearch
public OrSearch()
-
-
Method Details
-
or
Add a query to the OR expression- Parameters:
query- The query to or with the rest of the or:ed queries.
-
getLogicalOperator
Description copied from class:BinaryLogicalSearchImplement this in subclass to return the logical operator, for example "and".- Specified by:
getLogicalOperatorin classBinaryLogicalSearch- Returns:
- the logical operator.
-