uPortal 2.4.1
API Documentation

org.jasig.portal.ldap
Class LdapServices

java.lang.Object
  extended byorg.jasig.portal.ldap.LdapServices

public class LdapServices
extends java.lang.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.

Version:
$Revision: 1.4.2.3 $
Author:
Eric Dalquist edalquist@unicon.net

Method Summary
static ILdapServer getDefaultLdapServer()
          Get the default ILdapServer.
static ILdapServer getLdapServer(java.lang.String name)
          Get a named ILdapServer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultLdapServer

public static ILdapServer getDefaultLdapServer()
Get the default ILdapServer. A one-time initialization is performed when this method or getLdapServer(String name) is called. If a default connection is not found during initialization an IllegalStateException will be thrown.

Returns:
The default ILdapServer.

getLdapServer

public static ILdapServer getLdapServer(java.lang.String name)
Get a named ILdapServer. A one-time initialization is performed when this method or getDefaultLdapServer() is called. If a default connection is not found during initialization an IllegalStateException will be thrown.

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

uPortal 2.4.1
API Documentation