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).
|
protected EchoBaseInternalTopiaApplicationContext |
internalTopiaApplicationContext
Root context for the internal database.
|
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 |
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() |
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) |
protected Set<EchoBaseSession> sessions
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 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
IOExceptionCopyright © 2011–2014 Ifremer. All rights reserved.