jtge.engine.security
Class LoginHandler

java.lang.Object
  extended byjtge.engine.security.LoginHandler
All Implemented Interfaces:
IConsumer, ILoginView

public class LoginHandler
extends java.lang.Object
implements IConsumer, ILoginView

Implements a security handler to handle login commands and logout events for a given input.

TODO abtract dispatching based on a filter

Version:
$Revision: 1.7 $ $Date: 2005/09/10 23:59:42 $
Author:
Mathieu Champlon

Constructor Summary
LoginHandler(IInput input, IUserManager manager, IUserHandlerFactory factory)
          Create a login handler.
 
Method Summary
 void handle(ICommand command)
          Handle a command.
 void login(IUser user)
          Notify a user logging in.
 void logout(IUser user)
          Notify a user logging out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginHandler

public LoginHandler(IInput input,
                    IUserManager manager,
                    IUserHandlerFactory factory)
Create a login handler.

Parameters:
input - the input to watch
manager - the user manager
factory - the user handler factory
Method Detail

handle

public final void handle(ICommand command)
Handle a command.

Specified by:
handle in interface IConsumer
Parameters:
command - the command to handle

login

public final void login(IUser user)
Notify a user logging in.

Specified by:
login in interface ILoginView
Parameters:
user - the user logging in

logout

public final void logout(IUser user)
Notify a user logging out.

Specified by:
logout in interface ILoginView
Parameters:
user - the user logging out


Copyright © 2003-2005 . All Rights Reserved.