KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > golfShop > data > user > UserStore


1 /*
2  * Enhydra Java Application Server
3  * The Initial Developer of the Original Code is Lutris Technologies Inc.
4  * Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies
5  * Inc.
6  * All Rights Reserved.
7  *
8  * The contents of this file are subject to the Enhydra Public License Version
9  * 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 /**
27  * This abstract class defines the template for the tree kinds of user
28  * stores: memory, file and ldap.
29  * This object represents the physical medium that the list of all users is
30  * stored in. Only the UserDOImpl class needs to access this class.
31  *
32  * @author Andrew John
33  * @version $Revision: 1.1 $
34  */

35 public abstract class UserStore {
36
37    //If user store option is memory
38
protected abstract void initializeUserStore();
39     //If user store option is File we need file name
40
protected abstract void initializeUserStore(String JavaDoc fn);
41
42     protected abstract boolean usernameInUserStore(String JavaDoc username);
43     protected abstract UserDOImpl lookupUserFromUserStore(String JavaDoc username);
44     protected abstract void addUserToUserStore(UserDOImpl user);
45     protected abstract void updateUserInUserStore(UserDOImpl user);
46
47 }
48
49
Popular Tags