jtge.engine.security
Class UserChannelManager

java.lang.Object
  extended byjtge.engine.security.UserChannelManager
All Implemented Interfaces:
IChannelObserver, IUserManager

public class UserChannelManager
extends java.lang.Object
implements IUserManager, IChannelObserver

Maintains an association between a channel and a user.

Version:
$Revision: 1.4 $ $Date: 2005/08/29 17:41:32 $
Author:
Mathieu Champlon

Constructor Summary
UserChannelManager()
          Create a user channel manager.
 
Method Summary
 void connected(IInput input, IOutput output)
          Notify the connection success.
 void disconnected(IInput input, IOutput output)
          Notify the disconnection.
 void register(IInput input, IUser user)
          Register an input-user association.
 void register(ILoginObserver observer)
          Register a login observer.
 void unregister(IUser user)
          Unregister a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserChannelManager

public UserChannelManager()
Create a user channel manager.

Method Detail

register

public final void register(ILoginObserver observer)
Register a login observer.

Parameters:
observer - the observer to register

register

public final void register(IInput input,
                           IUser user)
Register an input-user association.

Specified by:
register in interface IUserManager
Parameters:
input - the input to register
user - the user to register

unregister

public final void unregister(IUser user)
Unregister a user.

Specified by:
unregister in interface IUserManager
Parameters:
user - the user to unregister

connected

public final void connected(IInput input,
                            IOutput output)
Notify the connection success.

Specified by:
connected in interface IChannelObserver
Parameters:
input - the channel input
output - the channel output

disconnected

public final void disconnected(IInput input,
                               IOutput output)
Notify the disconnection.

Specified by:
disconnected in interface IChannelObserver
Parameters:
input - the channel input
output - the channel output


Copyright © 2003-2005 . All Rights Reserved.