01: /* Copyright 2003 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.filesystem;
07:
08: import org.jasig.portal.groups.GroupsException;
09: import org.jasig.portal.groups.IEntitySearcher;
10: import org.jasig.portal.groups.IEntitySearcherFactory;
11: import org.apache.commons.logging.Log;
12: import org.apache.commons.logging.LogFactory;
13:
14: /**
15: * Returns <code>IEntityGroupStore</code> and <code>IEntityStore</code>
16: * implementations for the file system group service.
17: *
18: * @author Dan Ellentuck
19: * @version $Revision: 35547 $
20: */
21:
22: public class FileSystemEntitySearcherFactory implements
23: IEntitySearcherFactory {
24: private static final Log log = LogFactory
25: .getLog(FileSystemEntitySearcherFactory.class);
26:
27: /**
28: * FileSytemEntitySearcherFactory constructor.
29: */
30: public FileSystemEntitySearcherFactory() {
31: super ();
32: }
33:
34: /**
35: * @return org.jasig.portal.groups.filesystem.FileSystemGroupStore
36: */
37: protected static FileSystemGroupStore getGroupStore()
38: throws GroupsException {
39: return new FileSystemGroupStore();
40: }
41:
42: public IEntitySearcher newEntitySearcher() throws GroupsException {
43: return getGroupStore();
44: }
45: }
|