|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.db.AbstractUserLoginStore
com.antelmann.db.DefaultUserLoginStore
public class DefaultUserLoginStore
a simple transient implementation of a UserLoginStore. As this implementation is purely transient, no DatabaseExceptions are ever thrown.
| Constructor Summary | |
|---|---|
DefaultUserLoginStore(User... users)
|
|
| Method Summary | |
|---|---|
boolean |
addUser(User user)
adds a user to this store, so that it can be used for login. |
User[] |
getAllUsers()
returns all users available in this store |
User |
getUserForName(String name)
returns the User associated with the given name or null if no such user exists |
Iterable<String> |
getUserNames()
returns a list of valid user names (never null) |
boolean |
removeUser(User user)
|
| Methods inherited from class com.antelmann.db.AbstractUserLoginStore |
|---|
addLoginListener, getActiveUsers, getBackDoorUser, getCurrentUser, getLoginListeners, getLoginTime, isActiveUser, listUsers, listUsers, loginCanceled, loginUser, loginUser, logoutAll, logoutUser, removeLoginListener, setBackDoorUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUserLoginStore(User... users)
| Method Detail |
|---|
public boolean addUser(User user)
public boolean removeUser(User user)
public User[] getAllUsers()
public User getUserForName(String name)
throws DatabaseException
UserLoginStore
DatabaseExceptionpublic Iterable<String> getUserNames()
UserLoginStore
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||