-
Sub-task
-
Resolution: Fixed
-
Highest
-
None
-
None
-
None
com.atlassian.plugin.metadata.DefaultPluginMetadataManager.isUserInstalled(Plugin) is used by the UPM to decide whether to show a plugin in the "User-installed Plugins" or "System Plugins" container.
return !plugin.isBundledPlugin() && !metadata.applicationProvided(plugin);
The property file override logic resides in the metadata object, which is a com.atlassian.plugin.metadata.ClasspathFilePluginMetadata. Since the plugins are bundled, e.g. Balsamiq (com.balsamiq.confluence.plugins.mockups), the plugin object will be a com.atlassian.plugin.loaders.BundledPluginLoader.BundledPluginDelegate which returns true for isBundledPlugin().
Thus we have to implement our own version of com.atlassian.plugin.metadata.PluginMetadataManager which overrides the behaviour of DefaultPluginMetadataManager.isUserInstalled(Plugin) and delegates for the rest.
[CLOUD-3603] Implement a PluginMetadataManager
Workflow | Original: OnDemand v1 - Restricted [ 1429044 ] | New: JAC Sub-task Workflow [ 3717484 ] |
Status | Original: Deployed [ 10036 ] | New: Closed [ 6 ] |
Workflow | Original: OnDemand v1 [ 437174 ] | New: OnDemand v1 - Restricted [ 1429044 ] |
Project Import | New: Wed Oct 10 17:14:34 CDT 2012 [ 1349907274183 ] |
Workflow | Original: Studio v.2 [ 39487 ] | New: OnDemand v1 [ 78266 ] |
Status | Original: Resolved [ 5 ] | New: Deployed [ 10006 ] |
Task Points | Original: 2 | |
Issue Type | Original: Technical task [ 10 ] | New: Sub-task [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Description |
Original:
com.atlassian.plugin.metadata.DefaultPluginMetadataManager.isUserInstalled(Plugin) is used by the UPM to decide whether to show a plugin in the "User-installed Plugins" or "System Plugins" container. return !plugin.isBundledPlugin() && !metadata.applicationProvided(plugin); The property file override logic resides in the metadata object, which is a com.atlassian.plugin.metadata.ClasspathFilePluginMetadata. Since the plugins are bundled, e.g. Balsamiq (com.balsamiq.confluence.plugins.mockups), the plugin object will be a com.atlassian.plugin.loaders.BundledPluginLoader.BundledPluginDelegate which returns true for isBundledPlugin(). Thus we have to implement our own version of com.atlassian.plugin.metadata.PluginMetadataManager which overrides the behaviour of DefaultPluginMetadataManager.isUserInstalled(Plugin) and delegates for the rest. |
New:
com.atlassian.plugin.metadata.DefaultPluginMetadataManager.isUserInstalled(Plugin) is used by the UPM to decide whether to show a plugin in the "User-installed Plugins" or "System Plugins" container. {code}return !plugin.isBundledPlugin() && !metadata.applicationProvided(plugin);{code} The property file override logic resides in the metadata object, which is a com.atlassian.plugin.metadata.ClasspathFilePluginMetadata. Since the plugins are bundled, e.g. Balsamiq (com.balsamiq.confluence.plugins.mockups), the plugin object will be a com.atlassian.plugin.loaders.BundledPluginLoader.BundledPluginDelegate which returns true for isBundledPlugin(). Thus we have to implement our own version of com.atlassian.plugin.metadata.PluginMetadataManager which overrides the behaviour of DefaultPluginMetadataManager.isUserInstalled(Plugin) and delegates for the rest. |
Assignee | New: fabs [ fakraemer ] |
Summary | Original: Provide implementation PluginMetadataManager which overrides the DefaultPluginMetadataManager.isUserInstalled(Plugin) behaviour | New: Implement a PluginMetadataManager |
r116145