• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Highest Highest
    • 2.4, 2.4 Iteration 6
    • 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

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: OnDemand v1 - Restricted [ 1429044 ] New: JAC Sub-task Workflow [ 3717484 ]
            Status Original: Deployed [ 10036 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: OnDemand v1 [ 437174 ] New: OnDemand v1 - Restricted [ 1429044 ]
            Maleko Taylor (Inactive) made changes -
            Project Import New: Wed Oct 10 17:14:34 CDT 2012 [ 1349907274183 ]
            Tim Moore [Atlassian] made changes -
            Workflow Original: Studio v.2 [ 39487 ] New: OnDemand v1 [ 78266 ]
            Status Original: Resolved [ 5 ] New: Deployed [ 10006 ]
            Tim Moore [Atlassian] made changes -
            Task Points Original: 2
            Issue Type Original: Technical task [ 10 ] New: Sub-task [ 6 ]
            fabs (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]

            fabs (Inactive) added a comment - - edited

            r116145

            fabs (Inactive) added a comment - - edited r116145
            fabs (Inactive) made changes -
            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.
            fabs (Inactive) made changes -
            Assignee New: fabs [ fakraemer ]
            fabs (Inactive) made changes -
            Summary Original: Provide implementation PluginMetadataManager which overrides the DefaultPluginMetadataManager.isUserInstalled(Plugin) behaviour New: Implement a PluginMetadataManager

              fakraemer fabs (Inactive)
              fakraemer fabs (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: