Class LdapMapQuery
java.lang.Object
org.keycloak.models.map.storage.ldap.model.LdapMapQuery
- 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMappers
(Collection<ComponentModel> mappers) void
addObjectClasses
(Collection<String> objectClasses) void
addReturningLdapAttribute
(String ldapAttributeName) void
addReturningReadOnlyLdapAttribute
(String ldapAttributeName) void
close()
int
getLimit()
LdapModelCriteriaBuilder<?,
?, ?> int
int
setLimit
(int limit) void
setModelCriteriaBuilder
(LdapModelCriteriaBuilder<?, ?, ?> ldapModelCriteriaBuilder) setOffset
(int offset) void
setSearchDn
(String searchDn) void
setSearchScope
(int searchScope)
-
Constructor Details
-
LdapMapQuery
public LdapMapQuery()
-
-
Method Details
-
setSearchDn
-
addObjectClasses
-
addReturningLdapAttribute
-
addReturningReadOnlyLdapAttribute
-
addMappers
-
setSearchScope
public void setSearchScope(int searchScope) -
getSearchDn
-
getObjectClasses
-
getReturningLdapAttributes
-
getReturningReadOnlyLdapAttributes
-
getMappers
-
getSearchScope
public int getSearchScope() -
getLimit
public int getLimit() -
getOffset
public int getOffset() -
setOffset
-
setLimit
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
setModelCriteriaBuilder
-
getModelCriteriaBuilder
-