Class PluginsRepositoryImpl
- java.lang.Object
-
- jetbrains.buildServer.web.plugins.repository.PluginsRepositoryImpl
-
- All Implemented Interfaces:
PluginsRepository
public class PluginsRepositoryImpl extends Object implements PluginsRepository
Provides integration with JetBrains plugins repository.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.web.plugins.repository.PluginsRepository
PluginsRepository.PluginModel
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.web.plugins.repository.PluginsRepository
PLUGINS_REPOSITORY_ENABLE, PLUGINS_REPOSITORY_UPDATES_CHECK_INTERVAL, PLUGINS_REPOSITORY_URL
-
-
Constructor Summary
Constructors Constructor Description PluginsRepositoryImpl(ServerSettings serverSettings, ServerSummary serverSummary, ModifiedPlugins modifiedPlugins, ZipFactory zipFactory, PluginsProvider pluginsProvider, PluginsRepositorySettingsPersistor settingsPersistor, EventDispatcher<BuildServerListener> serverDispatcher, ScheduledExecutorService executor, PluginsRepositoryConnector repositoryConnector, PluginSignatureVerifier pluginSignatureVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPluginUpdates(boolean force)
boolean
checkUpdatesEnabled()
PluginsRepository.PluginModel
getPluginInfo(String id, String updateId)
String
getServerBuildNumber()
String
getServerLicensingMode()
String
getServerUrl()
String
getServerUUID()
List<PluginsRepository.PluginModel>
getUpdatedPlugins()
void
installPlugin(File pluginZipFile, String archiveName, PluginSignatureVerifier.CertificateType certificateType)
Installs a plugin from a plugin archive file with the specified archive name.void
installPlugin(String downloadUrl)
boolean
isEnabled()
void
setCheckUpdates(boolean checkUpdates)
-
-
-
Constructor Detail
-
PluginsRepositoryImpl
public PluginsRepositoryImpl(@NotNull ServerSettings serverSettings, @NotNull ServerSummary serverSummary, @NotNull ModifiedPlugins modifiedPlugins, @NotNull ZipFactory zipFactory, @NotNull PluginsProvider pluginsProvider, @NotNull PluginsRepositorySettingsPersistor settingsPersistor, @NotNull EventDispatcher<BuildServerListener> serverDispatcher, @NotNull ScheduledExecutorService executor, @NotNull PluginsRepositoryConnector repositoryConnector, @NotNull PluginSignatureVerifier pluginSignatureVerifier)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfacePluginsRepository
-
getServerUrl
@NotNull public String getServerUrl()
- Specified by:
getServerUrl
in interfacePluginsRepository
-
getServerUUID
@Nullable public String getServerUUID()
- Specified by:
getServerUUID
in interfacePluginsRepository
-
getServerBuildNumber
@NotNull public String getServerBuildNumber()
- Specified by:
getServerBuildNumber
in interfacePluginsRepository
-
getServerLicensingMode
@NotNull public String getServerLicensingMode()
- Specified by:
getServerLicensingMode
in interfacePluginsRepository
-
getPluginInfo
@NotNull public PluginsRepository.PluginModel getPluginInfo(@NotNull String id, @NotNull String updateId) throws Exception
- Specified by:
getPluginInfo
in interfacePluginsRepository
- Throws:
Exception
-
installPlugin
public void installPlugin(@NotNull File pluginZipFile, @NotNull String archiveName, @NotNull PluginSignatureVerifier.CertificateType certificateType) throws IOException
Description copied from interface:PluginsRepository
Installs a plugin from a plugin archive file with the specified archive name.- Specified by:
installPlugin
in interfacePluginsRepository
- Parameters:
pluginZipFile
- The file object representing the plugin archive file.archiveName
- The name of the plugin archive (this name will be used in TeamCity's plugins/ directory).- Throws:
IOException
- If an I/O error occurs during the installation process.
-
installPlugin
public void installPlugin(@NotNull String downloadUrl) throws Exception
- Specified by:
installPlugin
in interfacePluginsRepository
- Throws:
Exception
-
checkUpdatesEnabled
public boolean checkUpdatesEnabled()
- Specified by:
checkUpdatesEnabled
in interfacePluginsRepository
-
setCheckUpdates
public void setCheckUpdates(boolean checkUpdates)
- Specified by:
setCheckUpdates
in interfacePluginsRepository
-
checkPluginUpdates
public void checkPluginUpdates(boolean force)
- Specified by:
checkPluginUpdates
in interfacePluginsRepository
- Parameters:
force
- if true, plugin list will be re-checked even if getUpdatedPlugins() returns empty list
-
getUpdatedPlugins
@NotNull public List<PluginsRepository.PluginModel> getUpdatedPlugins()
- Specified by:
getUpdatedPlugins
in interfacePluginsRepository
-
-