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