|
||||||||||
| 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 static String |
PROPERTY_EMBEDDED_APPLICATION_CONFIGURATION
Key to keep embedded application configuration in this session. |
protected static String |
PROPERTY_EXPORT_DB_CONFIGURATION
Key to keep export db configuration in this session. |
protected static String |
PROPERTY_IMPORT_DATA_CONFIGURATION
Key to keep import data configuration in this session. |
protected static String |
PROPERTY_IMPORT_DB_CONFIGURATION
Key to keep import db configuration 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. |
|
EmbeddedApplicationConfiguration |
getEmbeddedApplicationConfiguration()
|
|
ExportDbConfiguration |
getExportDbConfiguration()
|
|
ImportDataConfiguration |
getImportDataConfiguration()
|
|
ImportDbConfiguration |
getImportDbConfiguration()
|
|
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. |
|
void |
setEmbeddedApplicationConfiguration(EmbeddedApplicationConfiguration configuration)
|
|
void |
setExportDbConfiguration(ExportDbConfiguration configuration)
|
|
void |
setImportDataConfiguration(ImportDataConfiguration configuration)
|
|
void |
setImportDbConfiguration(ImportDbConfiguration configuration)
|
|
| 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 static final String PROPERTY_IMPORT_DATA_CONFIGURATION
protected static final String PROPERTY_IMPORT_DB_CONFIGURATION
protected static final String PROPERTY_EXPORT_DB_CONFIGURATION
protected static final String PROPERTY_EMBEDDED_APPLICATION_CONFIGURATION
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 ImportDataConfiguration getImportDataConfiguration()
public void setImportDataConfiguration(ImportDataConfiguration configuration)
public ImportDbConfiguration getImportDbConfiguration()
public void setImportDbConfiguration(ImportDbConfiguration configuration)
public ExportDbConfiguration getExportDbConfiguration()
public void setExportDbConfiguration(ExportDbConfiguration configuration)
public EmbeddedApplicationConfiguration getEmbeddedApplicationConfiguration()
public void setEmbeddedApplicationConfiguration(EmbeddedApplicationConfiguration configuration)
public 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 | |||||||||