Class LDAPQuery
java.lang.Object
org.keycloak.storage.ldap.idm.query.internal.LDAPQuery
- All Implemented Interfaces:
- 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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddMappers(Collection<ComponentModel> mappers) addObjectClasses(Collection<String> objectClasses) addReturningLdapAttribute(String ldapAttributeName) addReturningReadOnlyLdapAttribute(String ldapAttributeName) addWhereCondition(Condition... condition) voidclose()intgetLimit()intintsetLimit(int limit) setSearchDn(String searchDn) setSearchDn(LdapName searchDn) setSearchScope(int searchScope) 
- 
Constructor Details- 
LDAPQuery
 
- 
- 
Method Details- 
addWhereCondition
- 
sortBy
- 
setSearchDn
- 
setSearchDn
- 
addObjectClasses
- 
addReturningLdapAttribute
- 
addReturningReadOnlyLdapAttribute
- 
addMappers
- 
setSearchScope
- 
getSorting
- 
getSearchDn
- 
getObjectClasses
- 
getReturningLdapAttributes
- 
getReturningReadOnlyLdapAttributes
- 
getMappers
- 
getSearchScopepublic int getSearchScope()
- 
getLimitpublic int getLimit()
- 
getPaginationContext
- 
getResultList
- 
getFirstResult
- 
getResultCountpublic int getResultCount()
- 
setLimit
- 
initPagination- Throws:
- NamingException
 
- 
getConditions
- 
getLdapProvider
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-