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 org.nuiton.topia.TopiaContext |
internalRootContext
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(EchoBaseServiceContext serviceContext) |
static EchoBaseApplicationContext |
getApplicationContext(com.opensymphony.xwork2.ActionContext actionContext) |
static EchoBaseApplicationContext |
getApplicationContext(javax.servlet.ServletContext servletContext) |
EchoBaseConfiguration |
getConfiguration() |
EchoBaseDbMeta |
getDbMeta() |
Set<EchoBaseSession> |
getEchoBaseSessions() |
org.nuiton.topia.TopiaContext |
getInternalRootContext() |
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,
org.nuiton.topia.TopiaContext topiaInternalContext,
org.nuiton.topia.TopiaContext topiaContext) |
void |
registerEchoBaseSession(EchoBaseSession session) |
static void |
removeApplicationContext(javax.servlet.ServletContext servletContext) |
static void |
setApplicationContext(javax.servlet.ServletContext servletContext,
EchoBaseApplicationContext applicationContext) |
void |
setConfiguration(EchoBaseConfiguration configuration) |
void |
setDbMeta(EchoBaseDbMeta dbMeta) |
void |
setDefaultUsersCreated(boolean defaultUsersCreated) |
void |
setInternalRootContext(org.nuiton.topia.TopiaContext internalRootContext) |
protected Set<EchoBaseSession> sessions
protected EchoBaseConfiguration configuration
protected EchoBaseDbMeta dbMeta
protected org.nuiton.topia.TopiaContext internalRootContext
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 org.nuiton.topia.TopiaContext getInternalRootContext()
public boolean isDefaultUsersCreated()
public EchoBaseServiceContext newServiceContext(Locale locale, org.nuiton.topia.TopiaContext topiaInternalContext, org.nuiton.topia.TopiaContext topiaContext)
public void close()
public void setDbMeta(EchoBaseDbMeta dbMeta)
public void setInternalRootContext(org.nuiton.topia.TopiaContext internalRootContext)
public void setDefaultUsersCreated(boolean defaultUsersCreated)
public void setConfiguration(EchoBaseConfiguration configuration)
protected void initInternalDatabase(EchoBaseServiceContext serviceContext) throws org.nuiton.topia.TopiaException
updateSchema configuration option is on.admin/adminorg.nuiton.topia.TopiaExceptionprotected void initLog(EchoBaseConfiguration configuration) throws IOException
IOExceptionprotected void extractFiles(EchoBaseServiceContext serviceContext) throws IOException
IOExceptionCopyright © 2011–2013 Ifremer. All rights reserved.