org.springframework.ldap
Interface ContextSource

All Known Implementing Classes:
AbstractContextSource, DirContextSource, LdapContextSource

public interface ContextSource

Interface used to retrieve and authenticate LDAP contexts.

Author:
Adam Skogman, Mattias Arthursson
See Also:
LdapTemplate

Method Summary
 javax.naming.directory.DirContext getReadOnlyContext()
          Gets a read-only DirContext.
 javax.naming.directory.DirContext getReadWriteContext()
          Gets a read-write DirContext.
 

Method Detail

getReadOnlyContext

javax.naming.directory.DirContext getReadOnlyContext()
                                                     throws org.springframework.dao.DataAccessException
Gets a read-only DirContext. The returned DirContext must be possible to perform read-only operations on.

Returns:
A DirContext instance, never null.
Throws:
org.springframework.dao.DataAccessException - if some error occurs creating an DirContext.

getReadWriteContext

javax.naming.directory.DirContext getReadWriteContext()
                                                      throws org.springframework.dao.DataAccessException
Gets a read-write DirContext.

Returns:
A DirContext instance, never null.
Throws:
org.springframework.dao.DataAccessException - if some error occurs creating an DirContext.


Copyright 2002-2006. All Rights Reserved.