Class LDAPQuery
- java.lang.Object
- 
- org.keycloak.storage.ldap.idm.query.internal.LDAPQuery
 
- 
- All Implemented Interfaces:
- AutoCloseable
 
 public class LDAPQuery extends Object implements AutoCloseable Default IdentityQuery implementation. LDAPQuery should be closed after use in case that pagination was used (initPagination was called) Closing LDAPQuery is very important in case ldapContextManager contains VaultSecret- Author:
- Shane Bryzak
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLDAPQuery.PaginationContext
 - 
Constructor SummaryConstructors Constructor Description LDAPQuery(LDAPStorageProvider ldapProvider)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
LDAPQuerypublic LDAPQuery(LDAPStorageProvider ldapProvider) 
 
- 
 - 
Method Detail- 
addObjectClassespublic LDAPQuery addObjectClasses(Collection<String> objectClasses) 
 - 
addReturningReadOnlyLdapAttributepublic LDAPQuery addReturningReadOnlyLdapAttribute(String ldapAttributeName) 
 - 
addMapperspublic LDAPQuery addMappers(Collection<ComponentModel> mappers) 
 - 
setSearchScopepublic LDAPQuery setSearchScope(int searchScope) 
 - 
getSearchDnpublic String getSearchDn() 
 - 
getMapperspublic List<ComponentModel> getMappers() 
 - 
getSearchScopepublic int getSearchScope() 
 - 
getLimitpublic int getLimit() 
 - 
getOffsetpublic int getOffset() 
 - 
getPaginationContextpublic LDAPQuery.PaginationContext getPaginationContext() 
 - 
getResultListpublic List<LDAPObject> getResultList() 
 - 
getFirstResultpublic LDAPObject getFirstResult() 
 - 
getResultCountpublic int getResultCount() 
 - 
setOffsetpublic LDAPQuery setOffset(int offset) 
 - 
setLimitpublic LDAPQuery setLimit(int limit) 
 - 
initPaginationpublic LDAPQuery initPagination() throws NamingException - Throws:
- NamingException
 
 - 
getLdapProviderpublic LDAPStorageProvider getLdapProvider() 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
 
 
- 
 
-