com.mymed.controller.core.manager.session
Class SessionManager

java.lang.Object
  extended by com.mymed.controller.core.manager.AbstractManager
      extended by com.mymed.controller.core.manager.session.SessionManager
All Implemented Interfaces:
ISessionManager

public class SessionManager
extends AbstractManager
implements ISessionManager

Manage the session of a user

Author:
lvanni, Milo Casagrande

Constructor Summary
SessionManager()
           
SessionManager(StorageManager storageManager)
           
 
Method Summary
 void create(MSessionBean sessionBean)
          Login
 void create(java.lang.String userID, java.lang.String ip)
          Deprecated. 
 void delete(java.lang.String sessionID)
          logout
 MSessionBean read(java.lang.String sessionID)
           
 void update(MSessionBean session)
           
 
Methods inherited from class com.mymed.controller.core.manager.AbstractManager
introspection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager()
               throws InternalBackEndException
Throws:
InternalBackEndException

SessionManager

public SessionManager(StorageManager storageManager)
               throws InternalBackEndException
Throws:
InternalBackEndException
Method Detail

create

@Deprecated
public void create(java.lang.String userID,
                              java.lang.String ip)
            throws InternalBackEndException,
                   IOBackEndException
Deprecated. 

Description copied from interface: ISessionManager
login

Specified by:
create in interface ISessionManager
Throws:
IOBackEndException
InternalBackEndException
See Also:
ISessionManager.create(String, String)

create

public void create(MSessionBean sessionBean)
            throws InternalBackEndException,
                   IOBackEndException
Description copied from interface: ISessionManager
Login

Specified by:
create in interface ISessionManager
Throws:
IOBackEndException
InternalBackEndException
See Also:
ISessionManager.create(String, String)

read

public MSessionBean read(java.lang.String sessionID)
                  throws InternalBackEndException,
                         IOBackEndException
Specified by:
read in interface ISessionManager
Returns:
Throws:
IOBackEndException
InternalBackEndException
See Also:
ISessionManager.read(String)

update

public void update(MSessionBean session)
            throws InternalBackEndException,
                   IOBackEndException
Specified by:
update in interface ISessionManager
Throws:
IOBackEndException
InternalBackEndException
See Also:
ISessionManager.update(MSessionBean)

delete

public void delete(java.lang.String sessionID)
            throws InternalBackEndException,
                   IOBackEndException
Description copied from interface: ISessionManager
logout

Specified by:
delete in interface ISessionManager
Throws:
IOBackEndException
ServiceManagerException
InternalBackEndException
See Also:
ISessionManager.delete(String)