|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserDatabaseInterface
Architecture interface for component UserDatabase.
Used to store user-specific data (e. g. identifiers, session keys and buffers).
Must be thread-safe.
| Method Summary | |
|---|---|
void |
addUser(User user)
Must add the bypassed User to the internal database. |
java.util.Collection<User> |
getActiveUsers()
Must return all Users currently active. |
int |
getSize()
Must return the number of Users currently stored in the
internal database. |
User |
getUser(int identifier)
Must return the User with the bypassed identifier. |
User |
getUserByNextMixIdentifier(int nextMixIdentifier)
Must return the User with the bypassed identifier. |
boolean |
isExistingUser(int identifier)
Must return whether a User with the bypassed identifier is
present in the internal database or not. |
void |
removeUser(int identifier)
Must remove the User with the bypassed identifier. |
| Method Detail |
|---|
void addUser(User user)
throws UserAlreadyExistingException
User to the internal database.
user - The User to be added.
UserAlreadyExistingException - Thrown when the bypassed
User has already been added
(user's identifier already in use).
void removeUser(int identifier)
throws UnknownUserException
User with the bypassed identifier.
identifier - Identifier of the User to be removed
from the internal database.
UnknownUserException - Thrown when no User with
the bypassed identifier is existent.
User getUser(int identifier)
throws UnknownUserException
User with the bypassed identifier.
identifier - Identifier of the User to be returned.
User with the bypassed identifier.
UnknownUserException - Thrown when no User with
the bypassed identifier is existent.
User getUserByNextMixIdentifier(int nextMixIdentifier)
throws UnknownUserException
User with the bypassed identifier.
nextMixIdentifier - Identifier of the User to be
returned.
User with the bypassed identifier.
UnknownUserException - Thrown when no User with
the bypassed identifier is existent.boolean isExistingUser(int identifier)
User with the bypassed identifier is
present in the internal database or not.
identifier - Identifier to search for.
User present or not.int getSize()
Users currently stored in the
internal database.
Users currently stored in the internal
database.java.util.Collection<User> getActiveUsers()
Users currently active.
Users currently active.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||