|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.setup.CmsSetupBean
org.opencms.setup.CmsUpdateBean
public class CmsUpdateBean
A java bean as a controller for the OpenCms update wizard.
| Field Summary | |
|---|---|
static String |
FOLDER_UPDATE
name of the update folder. |
| Fields inherited from class org.opencms.setup.CmsSetupBean |
|---|
FOLDER_BACKUP, FOLDER_DATABASE, FOLDER_LIB, FOLDER_SETUP, FOLDER_WEBINF, GENERIC_PROVIDER, HTML_MESSAGE_FILE, m_availableModules, m_cms, m_installModules, m_logFile, m_logsFolder, m_moduleDependencies, m_moduleFilenames, m_modulesFolder, m_newLoggingOffset, m_oldLoggingOffset, m_webAppRfsPath, MAXDB_PROVIDER, MYSQL_PROVIDER, ORACLE_PROVIDER, POSTGRESQL_PROVIDER, REQUIRED_DB_SETUP_FILES |
| Constructor Summary | |
|---|---|
CmsUpdateBean()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
displayError(String pathPrefix)
Returns html code to display an error. |
protected String |
getAdminGroup()
Returns the admin Group. |
String |
getAdminPwd()
Returns the admin Pwd. |
String |
getAdminUser()
Returns the admin User. |
Map |
getInstalledModules()
Returns a map of all previously installed modules. |
List |
getModulesToUpdate()
List of modules to be updated. |
String |
getUpdateProject()
Returns the update Project. |
String |
getUpdateSite()
Returns the update site. |
List |
getUptodateModules()
Returns the modules that does not need to be updated. |
CmsUpdateThread |
getWorkplaceUpdateThread()
Returns the workplace update thread. |
String |
htmlModules()
Returns html for displaying a module selection box. |
void |
init(String webAppRfsPath,
String servletMapping,
String defaultWebApplication)
Creates a new instance of the setup Bean. |
void |
prepareUpdateStep5()
Prepares step 4 of the update wizard. |
void |
prepareUpdateStep5b()
Prepares the update wizard. |
void |
prepareUpdateStep5bOutput(JspWriter out)
Generates the output for the update wizard. |
void |
prepareUpdateStep6()
Prepares step 6 of the update wizard. |
protected void |
setAdminGroup(String adminGroup)
Sets the admin Group. |
void |
setAdminPwd(String adminPwd)
Sets the admin Pwd. |
void |
setAdminUser(String adminUser)
Sets the admin User. |
void |
setUpdateProject(String updateProject)
Sets the update Project. |
void |
setUpdateSite(String site)
Sets the update site. |
void |
shellExit()
May be called after shell exit, can e.g. |
void |
shellStart()
May be called before shell startup, can e.g. |
protected void |
updateModule(String moduleName,
String importFile,
I_CmsReport report)
Imports a module (zipfile) from the default module directory, creating a temporary project for this. |
void |
updateModulesFromUpdateBean()
Installed all modules that have been set using CmsSetupBean.setInstallModules(String). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FOLDER_UPDATE
| Constructor Detail |
|---|
public CmsUpdateBean()
| Method Detail |
|---|
public String displayError(String pathPrefix)
displayError in class CmsSetupBeanpathPrefix - to adjust the path
public String getAdminPwd()
public String getAdminUser()
public Map getInstalledModules()
[String, CmsModuleVersion] objectsCmsModuleManager.getAllInstalledModules()public List getModulesToUpdate()
public String getUpdateProject()
public String getUpdateSite()
public List getUptodateModules()
public CmsUpdateThread getWorkplaceUpdateThread()
public String htmlModules()
CmsSetupBean
htmlModules in class CmsSetupBeanCmsSetupBean.htmlModules()
public void init(String webAppRfsPath,
String servletMapping,
String defaultWebApplication)
init in class CmsSetupBeanwebAppRfsPath - path to the OpenCms web applicationservletMapping - the OpenCms servlet mappingdefaultWebApplication - the name of the default web applicationpublic void prepareUpdateStep5()
public void prepareUpdateStep5b()
public void prepareUpdateStep5bOutput(JspWriter out)
throws IOException
out - the JSP print stream
IOException - in case errors occur while writing to "out"public void prepareUpdateStep6()
public void setAdminPwd(String adminPwd)
adminPwd - the admin Pwd to setpublic void setAdminUser(String adminUser)
adminUser - the admin User to setpublic void setUpdateProject(String updateProject)
updateProject - the update Project to setpublic void setUpdateSite(String site)
site - the update site to setpublic void shellExit()
I_CmsShellCommandsPlease note: This method is not guaranteed to be called. For a shell that has more then one shell command object initialized, only the exit method of one of thouse will be called.
shellExit in interface I_CmsShellCommandsshellExit in class CmsSetupBeanI_CmsShellCommands.shellExit()public void shellStart()
I_CmsShellCommandsPlease note: This method is not guaranteed to be called. For a shell that has more then one shell command object initialized, only the start method of one of thouse will be called.
shellStart in interface I_CmsShellCommandsshellStart in class CmsSetupBeanI_CmsShellCommands.shellStart()
public void updateModulesFromUpdateBean()
throws Exception
CmsSetupBean.setInstallModules(String).This method is invoked as a shell command.
Exception - if something goes wrongprotected String getAdminGroup()
protected void setAdminGroup(String adminGroup)
adminGroup - the admin Group to set
protected void updateModule(String moduleName,
String importFile,
I_CmsReport report)
throws Exception
moduleName - the name of the module to replaceimportFile - the name of the import .zip file located in the update module directoryreport - the shell report to write the output
Exception - if something goes wrongCmsImportExportManager.importData(org.opencms.file.CmsObject, String, String, org.opencms.report.I_CmsReport)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||