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 Summary
Nested Classes Modifier and Type Class Description static class
LDAPQuery.PaginationContext
-
Constructor Summary
Constructors Constructor Description LDAPQuery(LDAPStorageProvider ldapProvider)
-
Method Summary
-
-
-
Constructor Detail
-
LDAPQuery
public LDAPQuery(LDAPStorageProvider ldapProvider)
-
-
Method Detail
-
addObjectClasses
public LDAPQuery addObjectClasses(Collection<String> objectClasses)
-
addReturningReadOnlyLdapAttribute
public LDAPQuery addReturningReadOnlyLdapAttribute(String ldapAttributeName)
-
addMappers
public LDAPQuery addMappers(Collection<ComponentModel> mappers)
-
setSearchScope
public LDAPQuery setSearchScope(int searchScope)
-
getSearchDn
public String getSearchDn()
-
getMappers
public List<ComponentModel> getMappers()
-
getSearchScope
public int getSearchScope()
-
getLimit
public int getLimit()
-
getOffset
public int getOffset()
-
getPaginationContext
public LDAPQuery.PaginationContext getPaginationContext()
-
getResultList
public List<LDAPObject> getResultList()
-
getFirstResult
public LDAPObject getFirstResult()
-
getResultCount
public int getResultCount()
-
setOffset
public LDAPQuery setOffset(int offset)
-
setLimit
public LDAPQuery setLimit(int limit)
-
initPagination
public LDAPQuery initPagination() throws NamingException
- Throws:
NamingException
-
getLdapProvider
public LDAPStorageProvider getLdapProvider()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-