KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > golfShop > spec > user > GolfShopUserManager


1 /*
2  * GolfShop
3  *
4  * Enhydra super-servlet specification object
5  *
6  */

7
8 package golfShop.spec.user;
9
10
11 import com.lutris.appserver.server.user.*;
12 import com.lutris.appserver.server.session.*;
13 import golfShop.spec.LoginException;
14 public interface GolfShopUserManager {
15     
16     
17  public final int AUTH_OK = 0;
18  public final int AUTH_FAILED = 1;
19  public final int UNKNOWN_ERROR = 2;
20  public final int IO_ERROR = 3;
21  public final int PERMISSION_DENIED = 4;
22  public final int MULTIPLE_LOGIN = 5;
23  public final int ACCOUNT_DISABLED = 6;
24  public final int PASSWORD_TYPO = 7;
25  public final int PASSWORD_WEAK = 8;
26  public final int UNKNOWN_HOST = 9;
27  public final int USERNAME_ALREADY_EXISTS = 10;
28
29     
30     
31
32 public void login(String JavaDoc username, String JavaDoc password, Session session)
33                         throws LoginException, SessionException;
34 public void logout(Session session) throws SessionException ;
35
36 public void createAccount(String JavaDoc username,
37                               String JavaDoc password,
38                               String JavaDoc address1,
39                               String JavaDoc address2,
40                               String JavaDoc city,
41                               String JavaDoc state,
42                               String JavaDoc zip,
43                               String JavaDoc creditCard,
44                               String JavaDoc email,
45                               Session session) throws LoginException, SessionException;
46 public User getUser(String JavaDoc username);
47 }
Popular Tags