01: /*
02: * GolfShop
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07:
08: package golfShop.spec.user;
09:
10: import com.lutris.appserver.server.user.*;
11: import com.lutris.appserver.server.session.*;
12: import golfShop.spec.LoginException;
13:
14: public interface GolfShopUserManager {
15:
16: public final int AUTH_OK = 0;
17: public final int AUTH_FAILED = 1;
18: public final int UNKNOWN_ERROR = 2;
19: public final int IO_ERROR = 3;
20: public final int PERMISSION_DENIED = 4;
21: public final int MULTIPLE_LOGIN = 5;
22: public final int ACCOUNT_DISABLED = 6;
23: public final int PASSWORD_TYPO = 7;
24: public final int PASSWORD_WEAK = 8;
25: public final int UNKNOWN_HOST = 9;
26: public final int USERNAME_ALREADY_EXISTS = 10;
27:
28: public void login(String username, String password, Session session)
29: throws LoginException, SessionException;
30:
31: public void logout(Session session) throws SessionException;
32:
33: public void createAccount(String username, String password,
34: String address1, String address2, String city,
35: String state, String zip, String creditCard, String email,
36: Session session) throws LoginException, SessionException;
37:
38: public User getUser(String username);
39: }
|