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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMappers
(Collection<ComponentModel> mappers) addObjectClasses
(Collection<String> objectClasses) addReturningLdapAttribute
(String ldapAttributeName) addReturningReadOnlyLdapAttribute
(String ldapAttributeName) addWhereCondition
(Condition... condition) void
close()
int
getLimit()
int
int
setLimit
(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
-
getSearchScope
public int getSearchScope() -
getLimit
public int getLimit() -
getPaginationContext
-
getResultList
-
getFirstResult
-
getResultCount
public int getResultCount() -
setLimit
-
initPagination
- Throws:
NamingException
-
getConditions
-
getLdapProvider
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-