Package org.apache.wiki.ui
Class Installer
java.lang.Object
org.apache.wiki.ui.Installer
Manages JSPWiki installation on behalf of
admin/Install.jsp
. The contents of this class were previously part of
Install.jsp
.- Since:
- 2.4.20
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstaller
(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the administrative user had been created previously.Creates an administrative user and returns the new password.Returns the properties as a "key=value" string separated by newlinesgetProperty
(String key) Returns a property from the Engine's properties.void
void
void
boolean
-
Field Details
-
ADMIN_ID
- See Also:
-
ADMIN_NAME
- See Also:
-
INSTALL_INFO
- See Also:
-
INSTALL_ERROR
- See Also:
-
INSTALL_WARNING
- See Also:
-
APP_NAME
- See Also:
-
STORAGE_DIR
- See Also:
-
PAGE_DIR
- See Also:
-
WORK_DIR
- See Also:
-
ADMIN_GROUP
- See Also:
-
PROPFILENAME
- See Also:
-
TMP_DIR
-
-
Constructor Details
-
Installer
-
-
Method Details
-
adminExists
Returnstrue
if the administrative user had been created previously.- Returns:
- the result
-
createAdministrator
Creates an administrative user and returns the new password. If the admin user exists, the password will benull
.- Returns:
- the password
- Throws:
WikiSecurityException
-
getPropertiesList
Returns the properties as a "key=value" string separated by newlines- Returns:
- the string
-
getPropertiesPath
-
getProperty
Returns a property from the Engine's properties.- Parameters:
key
- the property key- Returns:
- the property value
-
parseProperties
-
saveProperties
-
validateProperties
-
restoreUserValues
-