public class LDAPFilterMatcher extends Object
This is done by recursively evaluating the abstract syntax tree of the expression as parsed by an apache directory shared method.
Modifier and Type | Method and Description |
---|---|
boolean |
match(Attributes attributes,
String filter)
Check whether a raw string filter expression matches on the given LDAP
entry.
|
public boolean match(Attributes attributes, String filter) throws DirectoryException
attributes
- the ldap entry to matchfilter
- a raw string filter expression (eg.
(!(&(attr1=*)(attr2=value2)(attr3=val*))) )DirectoryException
- if the filter is not a valid LDAP filterCopyright © 2011 Nuxeo SA. All Rights Reserved.