org.mmbase.module.tools
Class ApplicationInstaller

java.lang.Object
  extended byorg.mmbase.module.tools.ApplicationInstaller

public class ApplicationInstaller
extends Object

Application installations functionalite of MMAdmin.

Since:
MMBase-1.8
Version:
$Id: ApplicationInstaller.java,v 1.8 2006/07/15 16:02:21 michiel Exp $
Author:
Nico Klasens

Constructor Summary
ApplicationInstaller(MMBase mmb)
           
 
Method Summary
 boolean installApplication(String applicationName, int requiredVersion, String requiredMaintainer, org.mmbase.module.tools.ApplicationResult result, Set installationSet, boolean autoDeploy)
          Installs the application
 void installApplications()
           
protected  boolean installDataSources(List dataSources, String appName, org.mmbase.module.tools.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)
Method Detail

installApplications

public void installApplications()
                         throws SearchQueryException
Throws:
SearchQueryException

installApplication

public boolean installApplication(String applicationName,
                                  int requiredVersion,
                                  String requiredMaintainer,
                                  org.mmbase.module.tools.ApplicationResult result,
                                  Set 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 dataSources,
                                     String appName,
                                     org.mmbase.module.tools.ApplicationResult result)
Since:
MMBase-1.7
Warning: No Java Documentation Available.


MMBase build 1.8.1.20060716