net.sourceforge.apphere.mbean
Class SessionService

java.lang.Object
  extended bynet.sourceforge.apphere.mbean.SessionService
All Implemented Interfaces:
SessionDAO, SessionServiceMBean

public class SessionService
extends java.lang.Object
implements SessionServiceMBean

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

Constructor Summary
SessionService()
           
 
Method Summary
 int addSession(int userId, Session newSess)
           
 Session getSession(int userId, int sessID)
           
 java.util.List getSessions(int userId)
           
 void removeSession(int userId, int sessID)
           
 int size(int userId)
           
 void updateSession(int userId, Session sess)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionService

public SessionService()
Method Detail

addSession

public int addSession(int userId,
                      Session newSess)
Specified by:
addSession in interface SessionDAO

updateSession

public void updateSession(int userId,
                          Session sess)
                   throws AppHereException
Specified by:
updateSession in interface SessionDAO
Throws:
AppHereException

removeSession

public void removeSession(int userId,
                          int sessID)
Specified by:
removeSession in interface SessionDAO

getSession

public Session getSession(int userId,
                          int sessID)
Specified by:
getSession in interface SessionDAO

getSessions

public java.util.List getSessions(int userId)
Specified by:
getSessions in interface SessionDAO

size

public int size(int userId)