01: /* Copyright 2001 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: import javax.naming.NamingException;
09: import javax.naming.directory.DirContext;
10:
11: /**
12: * Legacy placeholder class. As of uPortal 2.4 all work should now be done with
13: * {@link org.jasig.portal.ldap.LdapServices}.
14: *
15: * @see org.jasig.portal.ldap.LdapServices
16: * @author Eric Dalquist <a href="mailto:edalquist@unicon.net">edalquist@unicon.net</a>
17: * @version $Revision: 35070 $
18: * @deprecated As of uPortal 2.4, use {@link org.jasig.portal.ldap.LdapServices}.
19: */
20: public class LdapServices {
21: /**
22: * Creates a new <code>LdapServices</code> object. Simply wraps
23: * an the {@link org.jasig.portal.ldap.ILdapServer} returned by {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()}.
24: * <code>LdapServices</code> objects should not be created. No reference
25: * to the {@link org.jasig.portal.ldap.ILdapServer} is held in
26: * an instance of <code>LdapServices</code>
27: *
28: * @deprecated As of uPortal 2.4, use {@link org.jasig.portal.ldap.LdapServices} instead.
29: */
30: public LdapServices() {
31: }
32:
33: /**
34: * Simply wraps an the {@link org.jasig.portal.ldap.ILdapServer} returned by
35: * {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()}.
36: *
37: * @see org.jasig.portal.ldap.ILdapServer#getConnection()
38: * @deprecated As of uPortal 2.4, use {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()} and {@link org.jasig.portal.ldap.ILdapServer#getConnection()}.
39: */
40: public DirContext getConnection() throws NamingException {
41: return org.jasig.portal.ldap.LdapServices
42: .getDefaultLdapServer().getConnection();
43: }
44:
45: /**
46: * Simply wraps an the {@link org.jasig.portal.ldap.ILdapServer} returned by
47: * {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()}.
48: *
49: * @see org.jasig.portal.ldap.ILdapServer#getBaseDN()
50: * @deprecated As of uPortal 2.4, use {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()} and {@link org.jasig.portal.ldap.ILdapServer#getBaseDN()}.
51: */
52: public String getBaseDN() {
53: return org.jasig.portal.ldap.LdapServices
54: .getDefaultLdapServer().getBaseDN();
55: }
56:
57: /**
58: * Simply wraps an the {@link org.jasig.portal.ldap.ILdapServer} returned by
59: * {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()}.
60: *
61: * @see org.jasig.portal.ldap.ILdapServer#getUidAttribute()
62: * @deprecated As of uPortal 2.4, use {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()} and {@link org.jasig.portal.ldap.ILdapServer#getUidAttribute()}.
63: */
64: public String getUidAttribute() {
65: return org.jasig.portal.ldap.LdapServices
66: .getDefaultLdapServer().getUidAttribute();
67: }
68:
69: /**
70: * Simply wraps an the {@link org.jasig.portal.ldap.ILdapServer} returned by
71: * {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()}.
72: *
73: * @see org.jasig.portal.ldap.ILdapServer#releaseConnection(DirContext)
74: * @deprecated As of uPortal 2.4, use {@link org.jasig.portal.ldap.LdapServices#getDefaultLdapServer()} and {@link org.jasig.portal.ldap.ILdapServer#releaseConnection(DirContext)}.
75: */
76: public void releaseConnection(DirContext conn) {
77: org.jasig.portal.ldap.LdapServices.getDefaultLdapServer()
78: .releaseConnection(conn);
79: }
80: }
|