01: /* Copyright 2002 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.groups.ldap;
07:
08: import org.jasig.portal.groups.GroupsException;
09: import org.jasig.portal.groups.IEntitySearcher;
10: import org.jasig.portal.groups.IEntitySearcherFactory;
11:
12: /**
13: * Returns an instance of the ldap <code>IEntitySearcher</code>.
14: * @author Dan Ellentuck
15: * @version $Revision: 34757 $
16: */
17:
18: public class LDAPEntitySearcherFactory implements
19: IEntitySearcherFactory {
20: /**
21: * LdapEntitySearcherFactory constructor.
22: */
23: public LDAPEntitySearcherFactory() {
24: super ();
25: }
26:
27: /**
28: * Return an instance of the entity searcher implementation.
29: * @return IEntitySearcher
30: * @exception GroupsException
31: */
32: public IEntitySearcher newEntitySearcher() throws GroupsException {
33: return newInstance();
34: }
35:
36: /**
37: * Return an instance of the entity searcher implementation.
38: * @return IEntitySearcher
39: * @exception GroupsException
40: */
41: public IEntitySearcher newInstance() throws GroupsException {
42: return (IEntitySearcher) new LDAPGroupStoreFactory()
43: .newGroupStore();
44: }
45: }
|