Class AndSearch
java.lang.Object
com.flowable.microsoft.graph.impl.search.AbstractSearch
com.flowable.microsoft.graph.impl.search.BinaryLogicalSearch
com.flowable.microsoft.graph.impl.search.AndSearch
- All Implemented Interfaces:
Search
A search for a logical AND. Example:
AndSearch search = new AndSearch();
search.and(new SearchTerm("givenName", "Shane");
search.and(new SearchTerm("surname", "Bowen");
System.out.println(search.encode());
would result in: ("givenName:Shane" AND ("surname:Bowen"))
This is inspired by the Spring LDAP AndFilter and adjusted for OData.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a query to the AND expression.protected StringImplement this in subclass to return the logical operator, for example "and".Methods 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
-
AndSearch
public AndSearch()
-
-
Method Details
-
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.
- See Also:
-
and
Add a query to the AND expression.- Parameters:
query- The expression to AND with the rest of the AND:ed expressions.- Returns:
- This AndQuery
-