|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.engine.security.LoginObserver
Adapts user login/logout notifications.
This class sends a login result to a given consumer when a new user logs in.
It also sends to the output for this new user a login update listing all current logged in users.
A logout result is sent out when a user logs off.
| Constructor Summary | |
LoginObserver(IConsumer consumer)
Create a login context. |
|
| Method Summary | |
void |
login(IUser user,
IConsumer consumer)
Notify a user logging in. |
void |
logout(IUser user)
Notify a user logging out. |
void |
register(ILoginView view)
Register a view to receive login events. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoginObserver(IConsumer consumer)
consumer - the update/result output| Method Detail |
public final void register(ILoginView view)
view - the view to register
public final void login(IUser user,
IConsumer consumer)
login in interface ILoginObserveruser - the user logging inconsumer - the associated consumerpublic final void logout(IUser user)
logout in interface ILoginObserveruser - the user logging out
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||