|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.echobase.ui.EchoBaseSession
public class EchoBaseSession
The session object of EchoBase to put in servlet session.
| Field Summary | |
|---|---|
protected static String |
PROPERTY_ECHO_BASE_USER
Key to set User connected in this session. |
protected Map<String,Object> |
store
To store all properties in this session. |
| Constructor Summary | |
|---|---|
EchoBaseSession()
Protect session constructor. |
|
| Method Summary | ||
|---|---|---|
boolean |
contains(String key)
Tests if for a given key, there is an associated object in this sessio!!!n. |
|
protected
|
get(String key,
Class<T> type)
Gets from this session an object given his key and his type. |
|
EchoBaseUser |
getEchoBaseUser()
Gets the informations of user as soon as the user is loggued. |
|
Object |
remove(String key)
Remove form this session, the object from his given key and returns it. |
|
protected void |
set(String key,
Object value)
Sets in this session the igven object using the given key. |
|
void |
setEchoBaseUser(EchoBaseUser echoBaseUser)
Sets in this session the loggued user. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String PROPERTY_ECHO_BASE_USER
protected Map<String,Object> store
| Constructor Detail |
|---|
public EchoBaseSession()
| Method Detail |
|---|
public EchoBaseUser getEchoBaseUser()
null if not in sessionpublic void setEchoBaseUser(EchoBaseUser echoBaseUser)
echoBaseUser - the user loggued to use in this sessionpublic Object remove(String key)
key - the key of object to remove from this session
null if not foundpublic boolean contains(String key)
key - the key to test in this session
true if an object was found in this session,
false otherwise
protected <T> T get(String key,
Class<T> type)
T - the type of object to obtain from this sessionkey - the key of object to obtain from this sessiontype - the type of object to obtain from this session
null if not found
protected void set(String key,
Object value)
key - the key where to store the object in this sessionvalue - the object to store in this session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||