Package jetbrains.buildServer.updates
Class PluginsUpdater
- java.lang.Object
-
- jetbrains.buildServer.updates.PluginsUpdater
-
public class PluginsUpdater extends Object
Handles information about plugin updates (critical security patches).
The information is loaded from the updates.xml file, and this class allows to download and activate the downloaded plugin.
- Since:
- 2024.03
-
-
Constructor Summary
Constructors Constructor Description PluginsUpdater(PluginManager pluginManager, ExecutorServices executorServices, HttpDownloader httpDownloader, PluginSignatureVerifier verifier, ServerPaths serverPaths, ServerSettings serverSettings, AdministratorEmailsSender adminEmailSender, RootUrlHolder urlProvider, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDownloadUpdates()
List<PluginUpdateInfo>
getCompatiblePlugins()
PluginUpdateInfo
getPluginToInstall(String pluginName)
void
parsePluginUpdates(org.jdom.Element channelElement, ServerVersionInfo version)
void
triggerPluginsDownload(boolean forceDownload)
-
-
-
Constructor Detail
-
PluginsUpdater
public PluginsUpdater(@NotNull PluginManager pluginManager, @NotNull ExecutorServices executorServices, @NotNull HttpDownloader httpDownloader, @NotNull PluginSignatureVerifier verifier, @NotNull ServerPaths serverPaths, @NotNull ServerSettings serverSettings, @Nullable AdministratorEmailsSender adminEmailSender, @NotNull RootUrlHolder urlProvider, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
getCompatiblePlugins
public List<PluginUpdateInfo> getCompatiblePlugins()
-
parsePluginUpdates
public void parsePluginUpdates(@NotNull org.jdom.Element channelElement, @NotNull ServerVersionInfo version)
-
triggerPluginsDownload
public void triggerPluginsDownload(boolean forceDownload)
-
getPluginToInstall
@Nullable public PluginUpdateInfo getPluginToInstall(@NotNull String pluginName)
-
canDownloadUpdates
public boolean canDownloadUpdates()
-
-