Class PluginPersistentStateStoreMigrator

java.lang.Object
com.atlassian.plugin.manager.store.PluginPersistentStateStoreMigrator

public class PluginPersistentStateStoreMigrator extends Object
Contains tasks that are specific to migrating data in the product's PluginPersistentStateStore.
Since:
v4.2
  • Method Details

    • removeDirectives

      public static void removeDirectives(PluginPersistentStateStore store)
      Removes directives (e.g. ;singleton:=true) from the plugin keys currently stored in the product's PluginPersistentStateStore.

      It is responsibility of the product to initiate and call when needed this util method in order to migrate its PluginPersistentStateStore(s).

      Parameters:
      store - the product PluginPersistentStateStore
    • removeDirectivesFromKey

      public static String removeDirectivesFromKey(String key)
      Removes any directives if they are part of the key. E.g. if the key is foo;singleton:=true-1.0.0 than it will become foo-1.0.0. If the key doesn't contain any directives, then null is returned, i.e., null indicates no-change/no-migration is needed for this key.
      Parameters:
      key - the original key that needs to be processed
      Returns:
      see above