com.solidstategroup.webmail
Class AccountManager
java.lang.Object
com.solidstategroup.webmail.AccountManager
public class AccountManager
- extends java.lang.Object
AccountManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_EMAIL_TAKEN
public static final int ERROR_EMAIL_TAKEN
- See Also:
- Constant Field Values
ERROR_USER_ALREADY_HAS_ACCOUNT
public static final int ERROR_USER_ALREADY_HAS_ACCOUNT
- See Also:
- Constant Field Values
INVALID_USERNAME_STRING
public static final java.lang.String[] INVALID_USERNAME_STRING
AccountManager
public AccountManager()
isSuitable
public boolean isSuitable(java.lang.String username)
- Any rules for this? no @ sign, spaces, naughty words? etc
userHasAccount
public boolean userHasAccount(User user)
emailAddressTaken
public boolean emailAddressTaken(java.lang.String email)
createAccount
public int createAccount(WebUser user)
- Returns an error code or the accountId of the new account