|
||||||||||
| 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 |
JARS_FOLDER
name of the jars folder. |
static String |
UPDATE_FOLDER
name of the update folder. |
| Fields inherited from class org.opencms.setup.CmsSetupBean |
|---|
GENERIC_PROVIDER, HTML_MESSAGE_FILE, m_availableModules, m_cms, m_installModules, m_moduleDependencies, 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 | |
|---|---|
protected String |
getAdminGroup()
Returns the admin Group. |
String |
getAdminPwd()
Returns the admin Pwd. |
String |
getAdminUser()
Returns the admin User. |
Map |
getAvailableModules()
Returns a map with all available modules. |
Map |
getModuleDependencies()
Returns a map with lists of dependent module package names keyed by module package names. |
String |
getUpdateLogName()
Returns the name of the update log file. |
String |
getUpdateProject()
Returns the update Project. |
String |
getUpdateSite()
Returns the update site. |
CmsUpdateThread |
getWorkplaceUpdateThread()
Returns the workplace update thread. |
void |
init(String webAppRfsPath,
String servletMapping,
String defaultWebApplication)
Creates a new instance of the setup Bean. |
void |
prepareUpdateStep4()
Prepares step 4 of the update wizard. |
void |
prepareUpdateStep4b()
Prepares the update wizard. |
void |
prepareUpdateStep4bOutput(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. |
void |
updateJarsFromUpdateBean()
Removes all jars indicated in the jars.to.remove property of file /update/jars/removejars.properties, and copies all jars in the /update/jars/ folder to the /WEB-INF/lib/ folder. |
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 JARS_FOLDER
public static final String UPDATE_FOLDER
| Constructor Detail |
|---|
public CmsUpdateBean()
| Method Detail |
|---|
public String getAdminPwd()
public String getAdminUser()
public Map getAvailableModules()
The map contains maps keyed by module package names. Each of these maps contains various information about the module such as the module name, version, description, and a list of it's dependencies. You should refer to the source code of this method to understand the data structure of the map returned by this method!
getAvailableModules in class CmsSetupBeanpublic Map getModuleDependencies()
getModuleDependencies in class CmsSetupBeanpublic String getUpdateLogName()
public String getUpdateProject()
public String getUpdateSite()
public CmsUpdateThread getWorkplaceUpdateThread()
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 prepareUpdateStep4()
public void prepareUpdateStep4b()
public void prepareUpdateStep4bOutput(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 updateJarsFromUpdateBean()
throws IOException
IOException - if something goes wrong
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 module 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 | |||||||||