Class PluginPersistentStateStoreMigrator
java.lang.Object
com.atlassian.plugin.manager.store.PluginPersistentStateStoreMigrator
Contains tasks that are specific to migrating data in the product's PluginPersistentStateStore.
- Since:
- v4.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRemoves directives (e.g.static StringRemoves any directives if they are part of the key.
-
Method Details
-
removeDirectives
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
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, thennullis returned, i.e.,nullindicates no-change/no-migration is needed for this key.- Parameters:
key- the original key that needs to be processed- Returns:
- see above
-