org.mmbase.applications.packaging
Class BundleManager

java.lang.Object
  extended by org.mmbase.applications.packaging.BundleManager

public class BundleManager
extends java.lang.Object

Bundle manager, keeps track of all the bundles (of packages) available to this this MMBase. Since bundles themselfs are also packages it can become a little confusing thats why we have to managers (bundle and packages).

Author:
Daniel Ockeloen (MMBased)

Constructor Summary
BundleManager()
           
 
Method Summary
static BundleInterface foundBundle(ProviderInterface provider, org.w3c.dom.Element n, java.lang.String name, java.lang.String type, java.lang.String maintainer, java.lang.String version, java.lang.String date, java.lang.String path)
           
static BundleInterface getBundle(java.lang.String id)
          get a bundle based on its id return Bundle (interface) or null if not found
static BundleInterface getBundle(java.lang.String id, java.lang.String wv)
           
static BundleInterface getBundle(java.lang.String id, java.lang.String wv, java.lang.String wp)
          get a bundle (interface) based on it and wanted version/provider return Bundle (interface) or null if not found
static java.util.Iterator getBundles()
          get all the bundles available to this MMBase
static java.util.Iterator getBundleVersions(java.lang.String id)
          return all bundles versions of this id
static int getInstalledVersion(java.lang.String id)
           
static void init()
          init this manager
static boolean isInstalledVersion(BundleInterface b)
           
static boolean isRunning()
          is this manager running
static boolean removeOfflineBundles(ProviderInterface wantedprov)
           
static boolean updateRegistryInstalled(BundleInterface b)
           
static boolean updateRegistryUninstalled(BundleInterface b)
           
static boolean upgradeAvailable(BundleInterface b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleManager

public BundleManager()
Method Detail

init

public static void init()
init this manager


isRunning

public static boolean isRunning()
is this manager running


getBundles

public static java.util.Iterator getBundles()
get all the bundles available to this MMBase

Returns:
bundle list

getBundle

public static BundleInterface getBundle(java.lang.String id)
get a bundle based on its id return Bundle (interface) or null if not found


getBundle

public static BundleInterface getBundle(java.lang.String id,
                                        java.lang.String wv,
                                        java.lang.String wp)
get a bundle (interface) based on it and wanted version/provider return Bundle (interface) or null if not found


getBundle

public static BundleInterface getBundle(java.lang.String id,
                                        java.lang.String wv)

foundBundle

public static BundleInterface foundBundle(ProviderInterface provider,
                                          org.w3c.dom.Element n,
                                          java.lang.String name,
                                          java.lang.String type,
                                          java.lang.String maintainer,
                                          java.lang.String version,
                                          java.lang.String date,
                                          java.lang.String path)

updateRegistryInstalled

public static boolean updateRegistryInstalled(BundleInterface b)

isInstalledVersion

public static boolean isInstalledVersion(BundleInterface b)

upgradeAvailable

public static boolean upgradeAvailable(BundleInterface b)

getInstalledVersion

public static int getInstalledVersion(java.lang.String id)
                               throws org.mmbase.storage.search.SearchQueryException
Throws:
org.mmbase.storage.search.SearchQueryException

updateRegistryUninstalled

public static boolean updateRegistryUninstalled(BundleInterface b)

getBundleVersions

public static java.util.Iterator getBundleVersions(java.lang.String id)
return all bundles versions of this id


removeOfflineBundles

public static boolean removeOfflineBundles(ProviderInterface wantedprov)


packaging build ${version}