public class LdapTemplateWithClassLoaderWrapper extends Object
LdapTemplate
and perform all operations with the context
ClassLoader set to this class's ClassLoader.
com.sun.naming.internal.NamingManager
uses the context
ClassLoader so, without this wrapper, calls that originate from plugins and
end up using LDAP will fail when they can't see the Spring LDAP
implementation classes.Constructor and Description |
---|
LdapTemplateWithClassLoaderWrapper(org.springframework.ldap.core.LdapTemplate template) |
Modifier and Type | Method and Description |
---|---|
void |
bind(Name dn,
Object obj,
Attributes attributes) |
<T> T |
lookup(LdapName dn,
ContextMapperWithRequiredAttributes<T> mapper) |
void |
lookup(LdapName dn,
String[] attributes,
org.springframework.ldap.core.AttributesMapper mapper) |
Object |
lookup(Name dn) |
void |
modifyAttributes(Name dn,
ModificationItem[] mods) |
List |
search(Name base,
String filter,
SearchControls controls,
org.springframework.ldap.core.ContextMapper mapper) |
List |
search(Name base,
String filter,
SearchControls controls,
org.springframework.ldap.core.ContextMapper mapper,
org.springframework.ldap.core.DirContextProcessor processor) |
void |
search(Name base,
String filter,
SearchControls controls,
org.springframework.ldap.core.NameClassPairCallbackHandler handler,
org.springframework.ldap.core.DirContextProcessor processor) |
void |
search(org.springframework.ldap.core.SearchExecutor se,
org.springframework.ldap.core.NameClassPairCallbackHandler handler,
org.springframework.ldap.core.DirContextProcessor processor) |
List |
searchWithLimitedResults(Name baseDN,
String filter,
SearchControls searchControls,
org.springframework.ldap.core.ContextMapper contextMapper,
org.springframework.ldap.core.DirContextProcessor processor,
int limit) |
void |
setIgnorePartialResultException(boolean ignore) |
void |
unbind(Name dn) |
public LdapTemplateWithClassLoaderWrapper(org.springframework.ldap.core.LdapTemplate template)
public List search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.ContextMapper mapper)
public List search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.ContextMapper mapper, org.springframework.ldap.core.DirContextProcessor processor)
public void search(Name base, String filter, SearchControls controls, org.springframework.ldap.core.NameClassPairCallbackHandler handler, org.springframework.ldap.core.DirContextProcessor processor)
public void unbind(Name dn)
public void bind(Name dn, Object obj, Attributes attributes)
public void modifyAttributes(Name dn, ModificationItem[] mods)
public void lookup(LdapName dn, String[] attributes, org.springframework.ldap.core.AttributesMapper mapper)
public <T> T lookup(LdapName dn, ContextMapperWithRequiredAttributes<T> mapper)
public void setIgnorePartialResultException(boolean ignore)
public void search(org.springframework.ldap.core.SearchExecutor se, org.springframework.ldap.core.NameClassPairCallbackHandler handler, org.springframework.ldap.core.DirContextProcessor processor)
public List searchWithLimitedResults(Name baseDN, String filter, SearchControls searchControls, org.springframework.ldap.core.ContextMapper contextMapper, org.springframework.ldap.core.DirContextProcessor processor, int limit)
Copyright © 2013 Atlassian. All Rights Reserved.