Package org.apache.wiki.ui
Class Installer
java.lang.Object
org.apache.wiki.ui.Installer
public class Installer extends Object
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 Modifier and Type Field Description static StringADMIN_GROUPstatic StringADMIN_IDstatic StringADMIN_NAMEstatic StringAPP_NAMEstatic StringINSTALL_ERRORstatic StringINSTALL_INFOstatic StringINSTALL_WARNINGstatic StringPAGE_DIRstatic StringPROPFILENAMEstatic StringSTORAGE_DIRstatic StringTMP_DIRstatic StringWORK_DIR -
Constructor Summary
Constructors Constructor Description Installer(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config) -
Method Summary
Modifier and Type Method Description booleanadminExists()Returnstrueif the administrative user had been created previously.StringcreateAdministrator()Creates an administrative user and returns the new password.StringgetPropertiesList()Returns the properties as a "key=value" string separated by newlinesStringgetPropertiesPath()StringgetProperty(String key)Returns a property from the Engine's properties.voidparseProperties()voidsaveProperties()booleanvalidateProperties()
-
Field Details
-
ADMIN_ID
- See Also:
- Constant Field Values
-
ADMIN_NAME
- See Also:
- Constant Field Values
-
INSTALL_INFO
- See Also:
- Constant Field Values
-
INSTALL_ERROR
- See Also:
- Constant Field Values
-
INSTALL_WARNING
- See Also:
- Constant Field Values
-
APP_NAME
- See Also:
- Constant Field Values
-
STORAGE_DIR
- See Also:
- Constant Field Values
-
PAGE_DIR
- See Also:
- Constant Field Values
-
WORK_DIR
- See Also:
- Constant Field Values
-
ADMIN_GROUP
- See Also:
- Constant Field Values
-
PROPFILENAME
- See Also:
- Constant Field Values
-
TMP_DIR
-
-
Constructor Details
-
Installer
public Installer(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config)
-
-
Method Details
-
adminExists
Returnstrueif 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
-