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