Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_GROUP |
static String |
ADMIN_ID |
static String |
ADMIN_NAME |
static String |
APP_NAME |
static String |
INSTALL_ERROR |
static String |
INSTALL_INFO |
static String |
INSTALL_WARNING |
static String |
PAGE_DIR |
static String |
PROPFILENAME |
static String |
STORAGE_DIR |
static String |
TMP_DIR |
static 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. |
String |
createAdministrator()
Creates an administrative user and returns the new password.
|
String |
getPropertiesList()
Returns the properties as a "key=value" string separated by newlines
|
String |
getPropertiesPath() |
String |
getProperty(String key)
Returns a property from the WikiEngine's properties.
|
void |
parseProperties() |
void |
saveProperties() |
boolean |
validateProperties() |
public static final String ADMIN_ID
public static final String ADMIN_NAME
public static final String INSTALL_INFO
public static final String INSTALL_ERROR
public static final String INSTALL_WARNING
public static final String APP_NAME
public static final String STORAGE_DIR
public static final String PAGE_DIR
public static final String WORK_DIR
public static final String ADMIN_GROUP
public static final String PROPFILENAME
public Installer(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config) throws IOException
IOException
public boolean adminExists()
true
if the administrative user had
been created previously.public String createAdministrator() throws WikiSecurityException
null
.WikiSecurityException
public String getPropertiesList()
public String getPropertiesPath()
public String getProperty(String key)
key
- the property keypublic void parseProperties() throws Exception
Exception
public void saveProperties()
public boolean validateProperties() throws Exception
Exception
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.