public class EchoBaseApplicationContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected EchoBaseConfiguration |
configuration |
protected EchoBaseDbMeta |
dbMeta |
protected boolean |
defaultUsersCreated
Flag setted to true when internal db was just created (should then
display in ui created user password).
|
static String |
ECHO_BASE_QGIS_TEMPLATE |
protected boolean |
gisSupport
Is application has gis support.
|
protected EchoBaseInternalTopiaApplicationContext |
internalTopiaApplicationContext
Root context for the internal database.
|
static String |
LIZMAP_TEMPLATE |
static String |
QGIS_RESOURCES |
static String |
QGIS_TEMPLATE |
protected Set<EchoBaseSession> |
sessions
Set of all loggued user sessions to be close at shutdown time.
|
| Constructor and Description |
|---|
EchoBaseApplicationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroyEchoBaseSession(EchoBaseSession session) |
protected void |
extractFiles() |
static EchoBaseApplicationContext |
getApplicationContext(com.opensymphony.xwork2.ActionContext actionContext) |
static EchoBaseApplicationContext |
getApplicationContext(javax.servlet.ServletContext servletContext) |
EchoBaseConfiguration |
getConfiguration() |
EchoBaseDbMeta |
getDbMeta() |
Set<EchoBaseSession> |
getEchoBaseSessions() |
EchoBaseInternalTopiaApplicationContext |
getInternalTopiaApplicationContext() |
void |
init() |
protected void |
initGisFiles() |
protected void |
initInternalDatabase(EchoBaseServiceContext serviceContext)
Init the internal database, says :
If no schema found or if asked to updateSchema using the
updateSchema configuration option is on.
If no user found is db, create a administrator user
admin/admin
|
protected void |
initLog(EchoBaseConfiguration configuration) |
boolean |
isDefaultUsersCreated() |
boolean |
isGisSupport() |
EchoBaseServiceContext |
newServiceContext(Locale locale,
EchoBaseInternalPersistenceContext topiaInternalContext,
EchoBaseUserPersistenceContext topiaUserContext,
EchoBaseUserTopiaApplicationContext topiaApplicationContext) |
void |
registerEchoBaseSession(EchoBaseSession session) |
static void |
removeApplicationContext(javax.servlet.ServletContext servletContext) |
static void |
setApplicationContext(javax.servlet.ServletContext servletContext,
EchoBaseApplicationContext applicationContext) |
public static final String QGIS_TEMPLATE
public static final String ECHO_BASE_QGIS_TEMPLATE
public static final String LIZMAP_TEMPLATE
public static final String QGIS_RESOURCES
protected Set<EchoBaseSession> sessions
protected boolean gisSupport
protected EchoBaseConfiguration configuration
protected EchoBaseDbMeta dbMeta
protected EchoBaseInternalTopiaApplicationContext internalTopiaApplicationContext
protected boolean defaultUsersCreated
public static EchoBaseApplicationContext getApplicationContext(com.opensymphony.xwork2.ActionContext actionContext)
public static EchoBaseApplicationContext getApplicationContext(javax.servlet.ServletContext servletContext)
public static void setApplicationContext(javax.servlet.ServletContext servletContext,
EchoBaseApplicationContext applicationContext)
public static void removeApplicationContext(javax.servlet.ServletContext servletContext)
public Set<EchoBaseSession> getEchoBaseSessions()
public void registerEchoBaseSession(EchoBaseSession session)
public void destroyEchoBaseSession(EchoBaseSession session)
public boolean isGisSupport()
public void init()
public EchoBaseConfiguration getConfiguration()
public EchoBaseDbMeta getDbMeta()
public EchoBaseInternalTopiaApplicationContext getInternalTopiaApplicationContext()
public boolean isDefaultUsersCreated()
public EchoBaseServiceContext newServiceContext(Locale locale, EchoBaseInternalPersistenceContext topiaInternalContext, EchoBaseUserPersistenceContext topiaUserContext, EchoBaseUserTopiaApplicationContext topiaApplicationContext)
public void close()
protected void initInternalDatabase(EchoBaseServiceContext serviceContext) throws org.nuiton.topia.persistence.TopiaException
updateSchema configuration option is on.admin/adminorg.nuiton.topia.persistence.TopiaExceptionprotected void initLog(EchoBaseConfiguration configuration) throws IOException
IOExceptionprotected void extractFiles()
throws IOException
IOExceptionprotected void initGisFiles()
Copyright © 2011–2014 Ifremer. All rights reserved.