Hi all,
The primary Bandana replacement, com.atlassian.sal.api.pluginsettings.PluginSettingsFactory has had its new implementation completed and will be available in next week’s EAP.
In addition to the types initially mentioned in the developer notes, we’ve extended type support to Boolean, Integer and Long (but not within List or Map). Note that this extended type support is specific to Confluence and you should not rely on it in cross-product code (PluginSettingsFactory is a SAL, cross-product API).
The data migration upgrade task has also been implemented so when you upgrade an older instance, it will automatically copy across all compatible data (supported types) from the BANDANA table to the new PLUGIN_SETTING table. You may now test your plugin-specific upgrade task (if you’ve written or require one) in combination with this new global upgrade task. We do not expect there to be any undesirable interactions, or for the execution order of your plugin upgrade task relative to the global upgrade task to matter. You may refer to my previous reply for why this is the case. In saying that, feel free to report any unexpected behaviours observed.
The PluginSettingsFactory OSGi service will also be published under the additional interface com.atlassian.confluence.api.service.settings.ExtendedPluginSettingsFactory. This alternative interface also allows consumers to retrieve all keys in a namespace (also known as ‘context’). This API is again Confluence-specific and the previous cross-product disclaimer applies.