org.jasig.portal.ldap
Class ContextSourceLdapServerImpl

java.lang.Object
  extended by org.jasig.portal.ldap.ContextSourceLdapServerImpl
All Implemented Interfaces:
ILdapServer

Deprecated. see ILdapServer deprecation comment

public class ContextSourceLdapServerImpl
extends Object
implements ILdapServer

An ILdapServer impl that wraps a Spring-LDAP ContextSource for getting contections to provide legacy ILdapServer support.

Version:
$Revision: 1.1 $
Author:
Eric Dalquist eric.dalquist@doit.wisc.edu

Field Summary
protected  org.apache.commons.logging.Log logger
          Deprecated.  
 
Constructor Summary
ContextSourceLdapServerImpl()
          Deprecated.  
 
Method Summary
 String getBaseDN()
          Deprecated. Gets the base DN used to search the LDAP directory context.
 DirContext getConnection()
          Deprecated. Gets an LDAP directory context.
 ContextSource getContextSource()
          Deprecated.  
 String getUidAttribute()
          Deprecated. Gets the uid attribute used to search the LDAP directory context.
 void releaseConnection(DirContext conn)
          Deprecated. Releases an LDAP directory context.
 void setBaseDN(String baseDN)
          Deprecated.  
 void setContextSource(ContextSource ldapContextSource)
          Deprecated.  
 void setUidAttribute(String uidAttribute)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Deprecated. 
Constructor Detail

ContextSourceLdapServerImpl

public ContextSourceLdapServerImpl()
Deprecated. 
Method Detail

getContextSource

public ContextSource getContextSource()
Deprecated. 
Returns:
the contextSource

setContextSource

public void setContextSource(ContextSource ldapContextSource)
Deprecated. 
Parameters:
ldapContextSource - the ldapContextSource to set

setUidAttribute

public void setUidAttribute(String uidAttribute)
Deprecated. 
Parameters:
uidAttribute - the uidAttribute to set

getBaseDN

public String getBaseDN()
Deprecated. 
Description copied from interface: ILdapServer
Gets the base DN used to search the LDAP directory context.

Specified by:
getBaseDN in interface ILdapServer
Returns:
a DN to use as reference point or context for queries
See Also:
ILdapServer.getBaseDN()

setBaseDN

public void setBaseDN(String baseDN)
Deprecated. 
See Also:
org.jasig.portal.ldap.ILdapServer#setBaseDN()

getConnection

public DirContext getConnection()
                         throws NamingException
Deprecated. 
Description copied from interface: ILdapServer
Gets an LDAP directory context.

Specified by:
getConnection in interface ILdapServer
Returns:
an LDAP directory context object.
Throws:
NamingException - If there is a problem connecting to the ldap server.
See Also:
ILdapServer.getConnection()

getUidAttribute

public String getUidAttribute()
Deprecated. 
Description copied from interface: ILdapServer
Gets the uid attribute used to search the LDAP directory context.

Specified by:
getUidAttribute in interface ILdapServer
Returns:
a DN to use as reference point or context for queries
See Also:
ILdapServer.getUidAttribute()

releaseConnection

public void releaseConnection(DirContext conn)
Deprecated. 
Description copied from interface: ILdapServer
Releases an LDAP directory context.

Specified by:
releaseConnection in interface ILdapServer
Parameters:
conn - an LDAP directory context object
See Also:
ILdapServer.releaseConnection(javax.naming.directory.DirContext)


Copyright © 2010 Jasig. All Rights Reserved.