|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
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, e.g. |
EqualsFilter | A filter for equals. |
GreaterThanOrEqualsFilter | A filter to compare >=. |
LessThanOrEqualsFilter | A filter to compare <=. |
LikeFilter | This filter allows the user to specify wildcards. |
NotFilter | Decorator filter for NOT. (! |
OrFilter | Filter for logical OR. |
WhitespaceWildcardsFilter | This filter takes a automatically converts all whitespace to * wildcards. |
This package contains 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 |