fr.inra.refcomp.services
Class RefcompSession

java.lang.Object
  extended by fr.inra.refcomp.services.RefcompSession

public class RefcompSession
extends Object

The user session. Only this object is stored into the user session. User: couteau Date: 30 nov. 2010


Field Summary
static String NAME
           
 
Constructor Summary
RefcompSession()
           
 
Method Summary
 void clearUser()
          Clear the logged-in user (used when logging out user)
 StorageService getService()
          Get the StorageService corresponding to the logged in user
static RefcompSession getSession(javax.servlet.http.HttpServletRequest request)
           
 org.nuiton.wikitty.entities.WikittyUser getUser()
          Get the logged in user
 void setService(StorageService service)
          Set the service corresponding to the logged in user
 void setUser(org.nuiton.wikitty.entities.WikittyUser user)
          Set the logged in user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

RefcompSession

public RefcompSession()
Method Detail

getService

public StorageService getService()
Get the StorageService corresponding to the logged in user

Returns:
the service corresponding to the logged-in user.

setService

public void setService(StorageService service)
Set the service corresponding to the logged in user

Parameters:
service - the service corresponding to the logged-in user.

setUser

public void setUser(org.nuiton.wikitty.entities.WikittyUser user)
Set the logged in user

Parameters:
user - the logged in user

getUser

public org.nuiton.wikitty.entities.WikittyUser getUser()
Get the logged in user

Returns:
the logged in user, null if the user is not logged in

clearUser

public void clearUser()
Clear the logged-in user (used when logging out user)


getSession

public static RefcompSession getSession(javax.servlet.http.HttpServletRequest request)


Copyright © 2010-2011 Code Lutin. All Rights Reserved.