org.mmbase.module.tools
Class ApplicationInstaller
java.lang.Object
org.mmbase.module.tools.ApplicationInstaller
class ApplicationInstaller
- extends Object
Application installations functionality of MMAdmin.
- Since:
- MMBase-1.8
- Version:
- $Id: ApplicationInstaller.java 41843 2010-04-12 15:04:13Z michiel $
- Author:
- Nico Klasens
|
Method Summary |
boolean |
installApplication(String applicationName,
int requiredVersion,
String requiredMaintainer,
ApplicationResult result,
Set<String> installationSet,
boolean autoDeploy)
Installs the application |
void |
installApplications()
|
protected boolean |
installDataSources(List<Map<String,String>> dataSources,
String appName,
ApplicationResult result)
|
(package private) boolean |
installRelationSources(List<Map<String,String>> ds,
String appname,
ApplicationResult result)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationInstaller
public ApplicationInstaller(MMBase mmb,
MMAdmin admin)
installApplications
public void installApplications()
throws SearchQueryException
- Throws:
SearchQueryException
installApplication
public boolean installApplication(String applicationName,
int requiredVersion,
String requiredMaintainer,
ApplicationResult result,
Set<String> installationSet,
boolean autoDeploy)
throws SearchQueryException
- Installs the application
- Parameters:
applicationName - Name of the application file, without the xml extension
This is also assumed to be the name of teh application itself
(if not, a warning will be issued)result - the result object, containing error messages when the installation fails,
or the installnotice if succesfull or already installedinstallationSet - set of installations that are currently being installed.
used to check if there are circular dependenciesautoDeploy - if true, the installation is only installed if the application is set to autodeploy
- Returns:
- true if succesfull, false otherwise
- Throws:
SearchQueryException
installDataSources
protected boolean installDataSources(List<Map<String,String>> dataSources,
String appName,
ApplicationResult result)
- Since:
- MMBase-1.7
- Javadoc:
installRelationSources
boolean installRelationSources(List<Map<String,String>> ds,
String appname,
ApplicationResult result)
- Javadoc:
MMBase 2.0-SNAPSHOT - null