net.sf.sail.core.session
Class DefaultSessionService

java.lang.Object
  extended by net.sf.sail.core.session.DefaultSessionService
All Implemented Interfaces:
SessionService

public class DefaultSessionService
extends java.lang.Object
implements SessionService


Constructor Summary
DefaultSessionService(SessionContext session)
           
 
Method Summary
 void addSessionEventListener(SessionEventListener sel)
           
 void addUser(User user)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String def)
          Return a session property.
 SessionUuid getSessionId()
           
 java.util.Collection<User> getUsers()
          Who is at the computer right now
 void removeUser(User user)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void userRequestsTermination()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSessionService

public DefaultSessionService(SessionContext session)
Method Detail

userRequestsTermination

public void userRequestsTermination()
Specified by:
userRequestsTermination in interface SessionService

addSessionEventListener

public void addSessionEventListener(SessionEventListener sel)
Specified by:
addSessionEventListener in interface SessionService

getUsers

public java.util.Collection<User> getUsers()
Description copied from interface: SessionService
Who is at the computer right now

Specified by:
getUsers in interface SessionService

addUser

public void addUser(User user)
Specified by:
addUser in interface SessionService

removeUser

public void removeUser(User user)
Specified by:
removeUser in interface SessionService

getSessionId

public SessionUuid getSessionId()
Specified by:
getSessionId in interface SessionService

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String def)
Description copied from interface: SessionService
Return a session property.

Specified by:
getProperty in interface SessionService
Parameters:
key - name of session property
def - a default value
Returns:

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)


Copyright © 2004-2008 TELS Center. All Rights Reserved.