net.sourceforge.apphere
Class SessionManager

java.lang.Object
  extended bynet.sourceforge.apphere.SessionManager

public class SessionManager
extends java.lang.Object

This should lookup Session Service mbean and call relevant methods & add any additional functionality (e.g. session transfer)

Author:
Dewi Roberts Chimera - Institute for Socio-Technical Innovation and Research University of Essex

Field Summary
 int userId
           
 
Constructor Summary
SessionManager(int userId)
           
SessionManager(java.lang.String userToken)
           
 
Method Summary
 int addSession(Session newSess)
           
 void appendXml(org.w3c.dom.Document doc, org.w3c.dom.Element root)
          Method appendXml.
 Session getSession(int sessID)
           
 SessionList getSessionList()
           
 void removeSession(int sessionID)
           
 int size()
           
 void transferSession(int sessID, java.lang.String destinationIP)
           
 void updateSession(Session sess)
          Method updateSession step 3
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userId

public int userId
Constructor Detail

SessionManager

public SessionManager(java.lang.String userToken)
               throws InvalidTokenException,
                      AppHereException

SessionManager

public SessionManager(int userId)
Method Detail

addSession

public int addSession(Session newSess)
               throws AppHereException
Throws:
AppHereException

updateSession

public void updateSession(Session sess)
                   throws AppHereException
Method updateSession step 3

Parameters:
sess -
Throws:
AppHereException

transferSession

public void transferSession(int sessID,
                            java.lang.String destinationIP)
                     throws InvalidTokenException,
                            AppHereException
Throws:
InvalidTokenException
AppHereException

removeSession

public void removeSession(int sessionID)
                   throws AppHereException
Throws:
AppHereException

getSession

public Session getSession(int sessID)
                   throws AppHereException
Throws:
AppHereException

getSessionList

public SessionList getSessionList()
                           throws AppHereException
Throws:
AppHereException

size

public int size()
         throws AppHereException
Throws:
AppHereException

appendXml

public void appendXml(org.w3c.dom.Document doc,
                      org.w3c.dom.Element root)
               throws AppHereException
Method appendXml.

Parameters:
root -
Throws:
AppHereException