01: /*
02: * Enhydra Java Application Server
03: * The Initial Developer of the Original Code is Lutris Technologies Inc.
04: * Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies
05: * Inc.
06: * All Rights Reserved.
07: *
08: * The contents of this file are subject to the Enhydra Public License Version
09: * 1.0 (the "License"); you may not use this file except in compliance with the
10: * License. You may obtain a copy of the License at
11: * http://www.enhydra.org/software/license/epl.html
12: *
13: * Software distributed under the License is distributed on an "AS IS" basis,
14: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
15: * License for the specific language governing rights and limitations under the
16: * License.
17: *
18: *
19: */
20:
21: package golfShop.data.user;
22:
23: import golfShop.data.user.UserDOImpl;
24:
25: /**
26: * This abstract class defines the template for the tree kinds of user
27: * stores: memory, file and ldap.
28: * This object represents the physical medium that the list of all users is
29: * stored in. Only the UserDOImpl class needs to access this class.
30: *
31: * @author Andrew John
32: * @version $Revision: 1.1 $
33: */
34: public abstract class UserStore {
35:
36: //If user store option is memory
37: protected abstract void initializeUserStore();
38:
39: //If user store option is File we need file name
40: protected abstract void initializeUserStore(String fn);
41:
42: protected abstract boolean usernameInUserStore(String username);
43:
44: protected abstract UserDOImpl lookupUserFromUserStore(
45: String username);
46:
47: protected abstract void addUserToUserStore(UserDOImpl user);
48:
49: protected abstract void updateUserInUserStore(UserDOImpl user);
50:
51: }
|