org.mmbase.module.tools
Class ApplicationInstaller

Package class diagram package ApplicationInstaller
java.lang.Object
  extended by org.mmbase.module.tools.ApplicationInstaller

 class ApplicationInstaller
extends Object

Application installations functionality of MMAdmin.

Since:
MMBase-1.8
Version:
$Id: ApplicationInstaller.java 46065 2011-11-23 13:17:02Z michiel $
Author:
Nico Klasens

Constructor Summary
ApplicationInstaller(MMBase mmb, MMAdmin admin)
           
 
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
 

Constructor Detail

ApplicationInstaller

public ApplicationInstaller(MMBase mmb,
                            MMAdmin admin)
Method Detail

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 installed
installationSet - set of installations that are currently being installed. used to check if there are circular dependencies
autoDeploy - 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)
                              throws SearchQueryException
Throws:
SearchQueryException
Since:
MMBase-1.7
Javadoc:

installRelationSources

boolean installRelationSources(List<Map<String,String>> ds,
                               String appname,
                               ApplicationResult result)
                         throws SearchQueryException
Throws:
SearchQueryException
Javadoc:


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36