net.sourceforge.apphere
Class SessionManager
java.lang.Object
   net.sourceforge.apphere.SessionManager
net.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
 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
userId
public int userId
SessionManager
public SessionManager(java.lang.String userToken)
               throws InvalidTokenException,
                      AppHereException
SessionManager
public SessionManager(int userId)
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