Preparing to replace the exceptions.

This commit is contained in:
Ulrik Sandberg
2007-01-09 23:00:46 +00:00
parent 392a62d0c3
commit c06916e53b
18 changed files with 41 additions and 12 deletions

View File

@@ -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;
/**

View File

@@ -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;
/**

View File

@@ -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;
/**

View File

@@ -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;
/**

View File

@@ -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;
/**

View File

@@ -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

View File

@@ -0,0 +1,8 @@
<html>
<body>
Core package of the JNDI/LDAP support.
Provides a LdapTemplate class and various callback interfaces.
</body>
</html>

View File

@@ -1,3 +1,7 @@
<html>
<body>
Support classes for custom authentication.
</body>
</html>

View File

@@ -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;

View File

@@ -1,3 +1,7 @@
<html>
<body>
Support classes for custom request control context processors.
</body>
</html>

View File

@@ -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>

View File

@@ -1,3 +1,7 @@
<html>
<body>
Internal utility classes.
</body>
</html>

View File

@@ -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}.

View File

@@ -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 {

View File

@@ -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.

View File

@@ -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 {

View File

@@ -16,7 +16,6 @@
package org.springframework.ldap.support;
import org.springframework.ldap.BadLdapGrammarException;
import org.springframework.ldap.support.LdapEncoder;
import junit.framework.TestCase;

View File

@@ -18,7 +18,6 @@ package org.springframework.ldap.support;
import junit.framework.TestCase;
import org.springframework.ldap.BadLdapGrammarException;
import com.gargoylesoftware.base.testing.EqualsTester;