Utility classes for dynamically building LDAP filters.


Interface Summary
Filter Common interface for filters.

Class Summary
AbstractFilter Convenience class that implements most of the methods in the Filter interface.
AndFilter A filter for a logical AND.
BinaryLogicalFilter Abstract superclass for binary logical operations, that is "and" and "or" operations.
CompareFilter Abstract superclass for filters to compare values.
EqualsFilter A filter for 'equals'.
GreaterThanOrEqualsFilter A filter to compare >=.
LessThanOrEqualsFilter A filter to compare <=.
LikeFilter This filter allows the user to specify wildcards (*) by not escaping them in the filter.
NotFilter A filter for 'not'.
OrFilter Filter for logical OR.
WhitespaceWildcardsFilter This filter automatically converts all whitespace to wildcards (*).

Package Description

Utility classes for dynamically building LDAP filters. Filters can be nested and wrapped around each other:

AndFilter andFilter = new AndFilter();
andFilter.and(new EqualsFilter("objectclass", "person");
andFilter.and(new EqualsFilter("cn", "Some CN");
OrFilter orFilter = new OrFilter();
orFilter.or(new EqualsFilter("objectclass", "organizationalUnit));
would result in:
(|(&(objectclass=person)(cn=Some CN))(objectclass=organizationalUnit))

Copyright 2002-2006. All Rights Reserved.