org.jasig.portal.ldap
Class LdapServices

java.lang.Object
  extended by org.jasig.portal.ldap.LdapServices

Deprecated. The prefered way to access configured ldap servers is using dependency injection and accessing the LdapContext instances in the spring context.

public final class LdapServices
extends Object

Provides LDAP access in a way similar to a relational DBMS. This class was modified for the 2.4 release to function more like RDBMServices. The class should be used via the static getDefaultLdapServer() and getLdapServer(String name) methods.

Post 3.0 this class looks for an ILdapServer in the portal spring context named 'defaultLdapServer' to use as the default LDAP server.

Version:
$Revision: 19776 $
Author:
Eric Dalquist

Method Summary
static ILdapServer getDefaultLdapServer()
          Deprecated. Get the default ILdapServer by looking for a ILdapServer bean named 'defaultLdapServer' in the portal spring context.
static ILdapServer getLdapServer(String name)
          Deprecated. Get the ILdapServer from the portal spring context with the specified name.
static Map<String,ILdapServer> getLdapServerMap()
          Deprecated. Get a Map of ILdapServer instances from the spring configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultLdapServer

public static ILdapServer getDefaultLdapServer()
Deprecated. 
Get the default ILdapServer by looking for a ILdapServer bean named 'defaultLdapServer' in the portal spring context.

Returns:
The default ILdapServer.

getLdapServer

public static ILdapServer getLdapServer(String name)
Deprecated. 
Get the ILdapServer from the portal spring context with the specified name.

Parameters:
name - The name of the ILdapServer to return.
Returns:
An ILdapServer with the specified name, null if there is no connection with the specified name.

getLdapServerMap

public static Map<String,ILdapServer> getLdapServerMap()
Deprecated. 
Get a Map of ILdapServer instances from the spring configuration.

Returns:
A Map of ILdapServer instances.


Copyright © 2010 Jasig. All Rights Reserved.