|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ecyrd.jspwiki.ui.Installer
public class Installer
Manages JSPWiki installation on behalf of admin/Install.jsp.
The contents of this class were previously part of Install.jsp.
| Field Summary | |
|---|---|
static String |
ADMIN_GROUP
|
static String |
ADMIN_ID
|
static String |
ADMIN_NAME
|
static String |
APP_NAME
|
static String |
BASE_URL
|
static String |
INSTALL_ERROR
|
static String |
INSTALL_INFO
|
static String |
INSTALL_WARNING
|
static String |
LOG_DIR
|
static String |
PAGE_DIR
|
static String |
STORAGE_DIR
|
static String |
WORK_DIR
|
| Constructor Summary | |
|---|---|
Installer(HttpServletRequest request,
ServletConfig config)
|
|
| Method Summary | |
|---|---|
boolean |
adminExists()
Returns true if the administrative user had
been created previously. |
String |
createAdministrator()
Creates an adminstrative user and returns the new password. |
String |
getProperties()
Returns the properties file as a string |
String |
getPropertiesPath()
|
String |
getProperty(String key)
Returns a property from the WikiEngine's properties. |
void |
parseProperties()
|
void |
saveProperties()
|
boolean |
validateProperties()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ADMIN_ID
public static final String ADMIN_NAME
public static final String INSTALL_INFO
public static final String INSTALL_WARNING
public static final String INSTALL_ERROR
public static final String APP_NAME
public static final String BASE_URL
public static final String STORAGE_DIR
public static final String LOG_DIR
public static final String PAGE_DIR
public static final String WORK_DIR
public static final String ADMIN_GROUP
| Constructor Detail |
|---|
public Installer(HttpServletRequest request,
ServletConfig config)
| Method Detail |
|---|
public boolean adminExists()
true if the administrative user had
been created previously.
public String createAdministrator()
throws WikiSecurityException
null.
WikiSecurityExceptionpublic String getProperties()
public String getPropertiesPath()
public String getProperty(String key)
key - the property key
public void parseProperties()
throws Exception
Exceptionpublic void saveProperties()
public boolean validateProperties()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||