Class RemoteToolsRegistryImpl
- java.lang.Object
-
- jetbrains.buildServer.tools.installed.RemoteToolsRegistryImpl
-
- All Implemented Interfaces:
ReadonlyToolsRegistry
public class RemoteToolsRegistryImpl extends Object implements ReadonlyToolsRegistry
-
-
Constructor Summary
Constructors Constructor Description RemoteToolsRegistryImpl(ServerToolProviders serverToolProviders, ExtensionHolder extensionHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstalledToolVersionEx
findInstalledTool(String toolId)
Find tool by its un-typed id.Collection<InstalledToolVersionEx>
getInstalledTools()
Collection<InstalledToolVersionEx>
getInstalledTools(ToolType toolType)
boolean
isToolRegistered(File toolPackage)
Checks if tool originated from given package is already registered on serverboolean
isToolRegistered(String toolId)
Checks if toolName tool is already registered on server
-
-
-
Constructor Detail
-
RemoteToolsRegistryImpl
public RemoteToolsRegistryImpl(@NotNull ServerToolProviders serverToolProviders, @NotNull ExtensionHolder extensionHolder)
-
-
Method Detail
-
getInstalledTools
@NotNull public Collection<InstalledToolVersionEx> getInstalledTools()
- Specified by:
getInstalledTools
in interfaceReadonlyToolsRegistry
-
getInstalledTools
@NotNull public Collection<InstalledToolVersionEx> getInstalledTools(@NotNull ToolType toolType)
- Specified by:
getInstalledTools
in interfaceReadonlyToolsRegistry
-
findInstalledTool
@Nullable public InstalledToolVersionEx findInstalledTool(@NotNull String toolId)
Description copied from interface:ReadonlyToolsRegistry
Find tool by its un-typed id.- Specified by:
findInstalledTool
in interfaceReadonlyToolsRegistry
- Returns:
- Tool if found, Null otherwise
-
isToolRegistered
public boolean isToolRegistered(@NotNull String toolId)
Description copied from interface:ReadonlyToolsRegistry
Checks if toolName tool is already registered on server- Specified by:
isToolRegistered
in interfaceReadonlyToolsRegistry
- Returns:
- true if toolName tool is already registered on server, false otherwise
-
isToolRegistered
public boolean isToolRegistered(@NotNull File toolPackage)
Description copied from interface:ReadonlyToolsRegistry
Checks if tool originated from given package is already registered on server- Specified by:
isToolRegistered
in interfaceReadonlyToolsRegistry
- Parameters:
toolPackage
- origin tool package- Returns:
- true if tool based on toolPackage is already registered on server, false otherwise
-
-