nl.gx.webmanager.wcb.lifecycle
Class WCBInstallManager

java.lang.Object
  extended by nl.gx.webmanager.wcb.lifecycle.WCBLifecycleManager
      extended by nl.gx.webmanager.wcb.lifecycle.WCBInstallManager

public class WCBInstallManager
extends WCBLifecycleManager

This class implements the business logic that should be performed upon installation of an OSGi bundle. It creates Siteworks objects like language labels and RBAC permissions, creates database entities like wmJellyContentType and performs all other actions that are necessary to prepare the WCB for first boot. Note that this lifecycle is attached to the INSTALLED lifecycle of the OSGi bundle. The install knows nothing about components.

Author:
ivol

Field Summary
 
Fields inherited from class nl.gx.webmanager.wcb.lifecycle.WCBLifecycleManager
myBundle, myBundleDefinition, myComponentManager, myIsWCB, myPreferencesService, myRepositoryService
 
Constructor Summary
WCBInstallManager(nl.gx.webmanager.wcb.componentmanager.impl.ComponentManagerImpl componentManager, org.osgi.framework.Bundle bundle)
          Constructor of the installation manager
 
Method Summary
 boolean install()
          Do the actual install of the component bundle
 
Methods inherited from class nl.gx.webmanager.wcb.lifecycle.WCBLifecycleManager
deleteBundleResources, deleteResourcesFromDisk, getBaseDirectory, getWebrootDirectory, purgePreferences, setBooleanPreference, setLanguageResources, setLastModified, startInfoMessage, stopInfoMessage, validateWCBKey, validateWCBKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WCBInstallManager

public WCBInstallManager(nl.gx.webmanager.wcb.componentmanager.impl.ComponentManagerImpl componentManager,
                         org.osgi.framework.Bundle bundle)
Constructor of the installation manager

Parameters:
componentManager - Component manager the lifecycle manager is created from
bundleDefinition - The Component bundle definition of the OSGi bundle that needs to be installed
Method Detail

install

public boolean install()
Do the actual install of the component bundle

Returns:
true if the installation succeeded, false otherwise


Copyright © 2007-2011 GX Software BV. All Rights Reserved.