public class InstallationJSONController
extends org.springframework.web.servlet.mvc.multiaction.MultiActionController
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_SETUP_MESSAGE_SESSION_KEY
the name of the session attribute for setup progress
|
static String |
DATABASE_SETUP_PROGRESS_CONNECTION
this number represents the progress 'establish a connection'
|
static String |
DATABASE_SETUP_PROGRESS_DATA
this number represents the progress 'initial some application data'
|
static String |
DATABASE_SETUP_PROGRESS_PREPARING
this number represents the progress 'preparing the installation'
|
static String |
DATABASE_SETUP_PROGRESS_SCHEMA
this number represents the progress 'creating the database schema'
|
static String |
DATABASE_SETUP_PROGRESS_SESSION_KEY
the name of the session attribute for setup progress
|
static String |
DATABASE_SETUP_STATUS_FAILED
this value represents a failed step
|
static String |
DATABASE_SETUP_STATUS_SESSION_KEY
the name of the session attribute for setup status
|
static String |
DATABASE_SETUP_STATUS_STARTED
this value represents the start of a process
|
static String |
DATABASE_SETUP_STATUS_SUCCEEDED
this value represents a succeeded step
|
DEFAULT_COMMAND_NAME, LAST_MODIFIED_METHOD_SUFFIX, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
Constructor and Description |
---|
InstallationJSONController() |
Modifier and Type | Method and Description |
---|---|
void |
checkDatabaseSetupStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ajax method to check the current status of database initialization.
|
void |
completeInstallation(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ajax method to initialize the application after completing the installation.
|
void |
sendTestMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sends a test mail.
|
void |
startDatabaseSetup(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ajax method to start the database setup.
|
bind, createBinder, getCommandName, getExceptionHandler, getLastModified, getMethodNameResolver, getValidators, getWebBindingInitializer, handleNoSuchRequestHandlingMethod, handleRequestInternal, initBinder, invokeNamedMethod, newCommandObject, setDelegate, setMethodNameResolver, setValidators, setWebBindingInitializer
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final String DATABASE_SETUP_STATUS_SESSION_KEY
public static final String DATABASE_SETUP_STATUS_STARTED
public static final String DATABASE_SETUP_STATUS_SUCCEEDED
public static final String DATABASE_SETUP_STATUS_FAILED
public static final String DATABASE_SETUP_PROGRESS_SESSION_KEY
public static final String DATABASE_SETUP_PROGRESS_CONNECTION
public static final String DATABASE_SETUP_PROGRESS_PREPARING
public static final String DATABASE_SETUP_PROGRESS_SCHEMA
public static final String DATABASE_SETUP_PROGRESS_DATA
public static final String DATABASE_SETUP_MESSAGE_SESSION_KEY
public void checkDatabaseSetupStatus(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the requestresponse
- the responseIOException
- Signals that an I/O exception has occurred.public void completeInstallation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the current requestresponse
- the response to write toIOException
- in case writing the response failedpublic void sendTestMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the http request.response
- the http response.IOException
- in case of an IO exceptionpublic void startDatabaseSetup(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the requestresponse
- the responseIOException
- Signals that an I/O exception has occurred.Copyright © 2019 Communote team. All rights reserved.