org.rhq.enterprise.communications
Class ServiceContainerConfigurationUpgrade

java.lang.Object
  extended by org.rhq.enterprise.communications.util.prefs.PreferencesUpgrade
      extended by org.rhq.enterprise.communications.ServiceContainerConfigurationUpgrade

public class ServiceContainerConfigurationUpgrade
extends PreferencesUpgrade

Upgrades the configuration of the communications preferences.

Author:
John Mazzitelli

Constructor Summary
ServiceContainerConfigurationUpgrade()
          Constructor for ServiceContainerConfigurationUpgrade.
 
Method Summary
 String getConfigurationSchemaVersionPreference()
          Returns the name of the preference whose value is the configuration schema version of the entire set of preferences.
static void upgradeToLatest(Preferences preferences)
          This is a convenience method that upgrades the given communications preferences to the latest configuration schema version.
 
Methods inherited from class org.rhq.enterprise.communications.util.prefs.PreferencesUpgrade
getConfigurationSchemaVersion, setConfigurationSchemaVersion, upgrade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContainerConfigurationUpgrade

public ServiceContainerConfigurationUpgrade()
Constructor for ServiceContainerConfigurationUpgrade.

Method Detail

upgradeToLatest

public static void upgradeToLatest(Preferences preferences)
This is a convenience method that upgrades the given communications preferences to the latest configuration schema version.

Parameters:
preferences - the preferences to upgrade

getConfigurationSchemaVersionPreference

public String getConfigurationSchemaVersionPreference()
Description copied from class: PreferencesUpgrade
Returns the name of the preference whose value is the configuration schema version of the entire set of preferences.

Specified by:
getConfigurationSchemaVersionPreference in class PreferencesUpgrade
Returns:
the name of the preference whose value is the configuration version integer
See Also:
PreferencesUpgrade.getConfigurationSchemaVersionPreference()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.