net.sf.ldaptemplate.support.filter
Class AndFilter
java.lang.Object
net.sf.ldaptemplate.support.filter.AbstractFilter
net.sf.ldaptemplate.support.filter.BinaryLogicalFilter
net.sf.ldaptemplate.support.filter.AndFilter
- All Implemented Interfaces:
- Filter
- public class AndFilter
- extends BinaryLogicalFilter
A filter for a logical AND. E.g.:
AndFilter filter = new AndFilter();
filter.and(new EqualsFilter("objectclass", "person");
filter.and(new EqualsFilter("cn", "Some CN");
System.out.println(filter.ecode());
would result in: (&(objectclass=person)(cn=Some CN))
- Author:
- Adam Skogman, Mattias Arthursson
- See Also:
EqualsFilter
Method Summary |
AndFilter |
and(Filter query)
Add a query to the and expression |
protected java.lang.String |
getLogicalOperator()
Implement this in subclass to return the logical operator, for example
&qout;&&qout;. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AndFilter
public AndFilter()
getLogicalOperator
protected java.lang.String getLogicalOperator()
- Description copied from class:
BinaryLogicalFilter
- Implement this in subclass to return the logical operator, for example
&qout;&&qout;.
- Specified by:
getLogicalOperator
in class BinaryLogicalFilter
- Returns:
- the logical operator.
and
public AndFilter and(Filter query)
- Add a query to the and expression
- Parameters:
query
- The query to and with the rest of the and:ed queries.
- Returns:
- This LdapAndQuery
Copyright © 2006 Jayway AB. All Rights Reserved.