nl.gx.webmanager.wcb.lifecycle
Class WCBUpdateManager

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

public class WCBUpdateManager
extends WCBLifecycleManager

This class implements the business logic that should be performed upon update of an OSGi bundle. It updates Siteworks objects like language labels and RBAC permissions, updates database entities like wmJellyContentType and performs all other actions that are necessary to update all objects created during installation of the OSGi bundle. Note that this lifecycle is attached to the UNINSTALLED lifecycle of the OSGi bundle. The update 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
WCBUpdateManager(nl.gx.webmanager.wcb.componentmanager.impl.ComponentManagerImpl componentManager, org.osgi.framework.Bundle bundle)
          Constructor of the update manager.
 
Method Summary
 boolean update()
          Do the actual update 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

WCBUpdateManager

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

Parameters:
componentManager - Component manager the lifecycle manager is created from
bundle - The bundle that needs to be updated
Method Detail

update

public boolean update()
Do the actual update of the component bundle.

Returns:
true if the update succeeded, false otherwise


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