public class Installer extends java.lang.Object
admin/Install.jsp. The contents of this class were previously part of
Install.jsp.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADMIN_GROUP |
static java.lang.String |
ADMIN_ID |
static java.lang.String |
ADMIN_NAME |
static java.lang.String |
APP_NAME |
static java.lang.String |
INSTALL_ERROR |
static java.lang.String |
INSTALL_INFO |
static java.lang.String |
INSTALL_WARNING |
static java.lang.String |
PAGE_DIR |
static java.lang.String |
PROPFILENAME |
static java.lang.String |
STORAGE_DIR |
static java.lang.String |
TMP_DIR |
static java.lang.String |
WORK_DIR |
| Constructor and Description |
|---|
Installer(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
adminExists()
Returns
true if the administrative user had been created previously. |
java.lang.String |
createAdministrator()
Creates an administrative user and returns the new password.
|
java.lang.String |
getPropertiesList()
Returns the properties as a "key=value" string separated by newlines
|
java.lang.String |
getPropertiesPath() |
java.lang.String |
getProperty(java.lang.String key)
Returns a property from the Engine's properties.
|
void |
parseProperties() |
void |
saveProperties() |
boolean |
validateProperties() |
public static final java.lang.String ADMIN_ID
public static final java.lang.String ADMIN_NAME
public static final java.lang.String INSTALL_INFO
public static final java.lang.String INSTALL_ERROR
public static final java.lang.String INSTALL_WARNING
public static final java.lang.String APP_NAME
public static final java.lang.String STORAGE_DIR
public static final java.lang.String PAGE_DIR
public static final java.lang.String WORK_DIR
public static final java.lang.String ADMIN_GROUP
public static final java.lang.String PROPFILENAME
public static final java.lang.String TMP_DIR
public Installer(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config)
public boolean adminExists()
true if the administrative user had been created previously.public java.lang.String createAdministrator() throws WikiSecurityException
null.WikiSecurityExceptionpublic java.lang.String getPropertiesList()
public java.lang.String getPropertiesPath()
public java.lang.String getProperty(java.lang.String key)
key - the property keypublic void parseProperties()
public void saveProperties()
public boolean validateProperties()
Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.