|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| Filter | Common interface for LDAP 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 that 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 (*). |
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(andFilter);
orFilter.or(new EqualsFilter("objectclass", "organizationalUnit));
System.out.println(orFilter.encode());
would result in:
(|(&(objectclass=person)(cn=Some CN))(objectclass=organizationalUnit))
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||