public class AndFilter extends BinaryLogicalFilter
AndFilter filter = new AndFilter(); filter.and(new EqualsFilter("objectclass", "person"); filter.and(new EqualsFilter("cn", "Some CN"); System.out.println(filter.encode());would result in:
(&(objectclass=person)(cn=Some CN))
EqualsFilter
queryList
Constructor and Description |
---|
AndFilter() |
Modifier and Type | Method and Description |
---|---|
AndFilter |
and(Filter query)
Add a query to the AND expression.
|
protected String |
getLogicalOperator()
Implement this in subclass to return the logical operator, for example
&qout;&&qout;.
|
append, encode, equals, hashCode
encode, toString
protected String getLogicalOperator()
BinaryLogicalFilter
getLogicalOperator
in class BinaryLogicalFilter
Copyright © 2005–2016 The Spring LDAP Framework. All rights reserved.