Preparing to replace the exceptions.
This commit is contained in:
@@ -21,10 +21,10 @@ import javax.naming.directory.BasicAttribute;
|
||||
import javax.naming.directory.BasicAttributes;
|
||||
|
||||
|
||||
import org.springframework.ldap.EntryNotFoundException;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,10 +25,10 @@ import javax.naming.directory.ModificationItem;
|
||||
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.ldap.UncategorizedLdapException;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.UncategorizedLdapException;
|
||||
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
package org.springframework.ldap;
|
||||
|
||||
import org.springframework.ldap.EntryNotFoundException;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.CountNameClassPairCallbackHandler;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,6 +21,7 @@ import javax.naming.Name;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,10 +19,10 @@ package org.springframework.ldap;
|
||||
import javax.naming.Name;
|
||||
|
||||
|
||||
import org.springframework.ldap.EntryNotFoundException;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,11 +35,11 @@ import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.ldap.DefaultNamingExceptionTranslator;
|
||||
import org.springframework.ldap.EntryNotFoundException;
|
||||
import org.springframework.ldap.NamingExceptionTranslator;
|
||||
import org.springframework.ldap.support.DefaultNamingExceptionTranslator;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.ldap.support.NamingExceptionTranslator;
|
||||
|
||||
/**
|
||||
* Executes core LDAP functionality and helps to avoid common errors, relieving
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
Core package of the JNDI/LDAP support.
|
||||
Provides a LdapTemplate class and various callback interfaces.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,3 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
Support classes for custom authentication.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -25,7 +25,7 @@ import javax.naming.directory.DirContext;
|
||||
import javax.naming.ldap.Control;
|
||||
import javax.naming.ldap.LdapContext;
|
||||
|
||||
import org.springframework.ldap.UncategorizedLdapException;
|
||||
import org.springframework.ldap.support.UncategorizedLdapException;
|
||||
import org.springframework.util.ReflectionUtils;
|
||||
|
||||
import com.sun.jndi.ldap.ctl.PagedResultsControl;
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
Support classes for custom request control context processors.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
Utility classes for dynamically building LDAP
|
||||
filters. Filters can be nested and wrapped around each other:
|
||||
<pre>
|
||||
@@ -13,4 +15,6 @@ System.out.println(orFilter.encode());
|
||||
would result in:
|
||||
|
||||
<pre>(|(&(objectclass=person)(cn=Some CN))(objectclass=organizationalUnit))</pre>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
Internal utility classes.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -34,6 +34,8 @@ import org.springframework.ldap.core.ContextMapper;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.core.NameClassPairCallbackHandler;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.ldap.support.NamingExceptionTranslator;
|
||||
|
||||
/**
|
||||
* Unit tests for the <code>list</code> operations in {@link LdapTemplate}.
|
||||
|
||||
@@ -32,6 +32,8 @@ import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.DirContextAdapter;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.ldap.support.NamingExceptionTranslator;
|
||||
|
||||
public class LdapTemplateLookupTest extends TestCase {
|
||||
|
||||
|
||||
@@ -27,10 +27,10 @@ import junit.framework.TestCase;
|
||||
|
||||
import org.easymock.MockControl;
|
||||
import org.springframework.dao.DataIntegrityViolationException;
|
||||
import org.springframework.ldap.NamingExceptionTranslator;
|
||||
import org.springframework.ldap.UncategorizedLdapException;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.support.NamingExceptionTranslator;
|
||||
import org.springframework.ldap.support.UncategorizedLdapException;
|
||||
|
||||
/**
|
||||
* Unit tests for the rename operations in the LdapTemplate class.
|
||||
|
||||
@@ -44,6 +44,8 @@ import org.springframework.ldap.core.LdapTemplate;
|
||||
import org.springframework.ldap.core.NameClassPairCallbackHandler;
|
||||
import org.springframework.ldap.core.SearchExecutor;
|
||||
import org.springframework.ldap.support.DistinguishedName;
|
||||
import org.springframework.ldap.support.EntryNotFoundException;
|
||||
import org.springframework.ldap.support.NamingExceptionTranslator;
|
||||
|
||||
public class LdapTemplateTest extends TestCase {
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.ldap.support;
|
||||
|
||||
import org.springframework.ldap.BadLdapGrammarException;
|
||||
import org.springframework.ldap.support.LdapEncoder;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springframework.ldap.support;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.springframework.ldap.BadLdapGrammarException;
|
||||
|
||||
import com.gargoylesoftware.base.testing.EqualsTester;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user