public boolean apply(PluginLicense license) { String pluginKey = license.getPluginKey(); if (!pluginAccessorAndController.isLegacyLicensePlugin(pluginKey)) { // the license is not for a legacy licensing plugin - always return false. return false; } return !pluginAccessorAndController.isPluginInstalled(pluginKey); }
@Override public Plugin apply(PluginLicense license) { return fromPluginKey.apply(license.getPluginKey()); }