Package io.milton.ldap
Class CompoundLdapFilter
java.lang.Object
io.milton.ldap.CompoundLdapFilter
- All Implemented Interfaces:
LdapFilter
- Author:
- brad
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(LdapFilter filter) Add child filterfindInGAL(LdapPrincipal user, Set<String> returningAttributes, int sizeLimit) Find persons in Exchange GAL matching filter.Build search filter for Contacts folder search.booleanThis is only a full search if every child is also a full searchbooleanisMatch(LdapContact person) Test if person matches the current filter.toString()
-
Method Details
-
toString
-
add
Add child filter- Specified by:
addin interfaceLdapFilter- Parameters:
filter- inner filter
-
isFullSearch
public boolean isFullSearch()This is only a full search if every child is also a full search- Specified by:
isFullSearchin interfaceLdapFilter- Returns:
- true if full search filter
-
getContactSearchFilter
Build search filter for Contacts folder search. Use Exchange SEARCH syntax- Specified by:
getContactSearchFilterin interfaceLdapFilter- Returns:
- contact search filter
-
isMatch
Test if person matches the current filter.- Specified by:
isMatchin interfaceLdapFilter- Parameters:
person- person attributes map- Returns:
- true if filter match
- Throws:
NotAuthorizedExceptionBadRequestException
-
findInGAL
public List<LdapContact> findInGAL(LdapPrincipal user, Set<String> returningAttributes, int sizeLimit) throws IOException, NotAuthorizedException, BadRequestException Find persons in Exchange GAL matching filter. Iterate over child filters to build results.- Specified by:
findInGALin interfaceLdapFilter- Parameters:
user- Exchange session- Returns:
- persons map
- Throws:
IOException- on errorNotAuthorizedExceptionBadRequestException
-