Package org.sonar.updatecenter.common
Class UpdateCenter
- java.lang.Object
-
- org.sonar.updatecenter.common.UpdateCenter
-
public class UpdateCenter extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateCentercreate(PluginReferential updateCenterPluginReferential, List<Scanner> scanners, Sonar sonar)List<Plugin>findAllCompatiblePlugins()Return all plugins with at least one version compatible with SQ.List<PluginUpdate>findAvailablePlugins()List<Release>findInstallablePlugins(String pluginKey, Version minimumVersion)Return all releases to download (including outgoing dependencies and installed incoming dependencies) to install / update a pluginList<PluginUpdate>findPluginUpdates()List<SonarUpdate>findSonarUpdates()DategetDate()List<Scanner>getScanners()SonargetSonar()PluginReferentialgetUpdateCenterPluginReferential()UpdateCenterregisterInstalledPlugins(PluginReferential installedPluginReferential)UpdateCentersetDate(Date date)UpdateCentersetInstalledSonarVersion(Version installedSonarVersion)
-
-
-
Method Detail
-
create
public static UpdateCenter create(PluginReferential updateCenterPluginReferential, List<Scanner> scanners, Sonar sonar)
-
getUpdateCenterPluginReferential
public PluginReferential getUpdateCenterPluginReferential()
-
registerInstalledPlugins
public UpdateCenter registerInstalledPlugins(PluginReferential installedPluginReferential)
-
getSonar
public Sonar getSonar()
-
setInstalledSonarVersion
public UpdateCenter setInstalledSonarVersion(Version installedSonarVersion)
-
getDate
public Date getDate()
-
setDate
public UpdateCenter setDate(@Nullable Date date)
-
findAvailablePlugins
public List<PluginUpdate> findAvailablePlugins()
-
findAllCompatiblePlugins
public List<Plugin> findAllCompatiblePlugins()
Return all plugins with at least one version compatible with SQ. For ecosystems only parent plugin is returned.
-
findPluginUpdates
public List<PluginUpdate> findPluginUpdates()
-
findInstallablePlugins
public List<Release> findInstallablePlugins(String pluginKey, Version minimumVersion)
Return all releases to download (including outgoing dependencies and installed incoming dependencies) to install / update a plugin
-
findSonarUpdates
public List<SonarUpdate> findSonarUpdates()
-
-