1 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 username, String password, Session session) 33 throws LoginException, SessionException; 34 public void logout(Session session) throws SessionException ; 35 36 public void createAccount(String username, 37 String password, 38 String address1, 39 String address2, 40 String city, 41 String state, 42 String zip, 43 String creditCard, 44 String email, 45 Session session) throws LoginException, SessionException; 46 public User getUser(String username); 47 } | Popular Tags |