public class OrFilter extends BinaryLogicalFilter
OrFilter filter = new OrFilter(); filter.or(new EqualsFilter("objectclass", "person"); filter.or(new EqualsFilter("objectclass", "organizationalUnit"); System.out.println(filter.encode());would result in:
(|(objectclass=person)(objectclass=organizationalUnit))
queryList
Constructor and Description |
---|
OrFilter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getLogicalOperator()
Implement this in subclass to return the logical operator, for example
&qout;&&qout;.
|
OrFilter |
or(Filter query)
Add a query to the OR expression
|
append, encode, equals, hashCode
encode, toString
public OrFilter or(Filter query)
query
- The query to or with the rest of the or:ed queries.protected String getLogicalOperator()
BinaryLogicalFilter
getLogicalOperator
in class BinaryLogicalFilter
Copyright © 2005-2012 The Spring LDAP Framework. All Rights Reserved.