Package jetbrains.buildServer.plugins
Class PluginsStateImpl
- java.lang.Object
-
- jetbrains.buildServer.plugins.PluginsStateImpl
-
- All Implemented Interfaces:
PluginsState
public class PluginsStateImpl extends Object implements PluginsState
-
-
Constructor Summary
Constructors Constructor Description PluginsStateImpl(Collection<PluginData> loadedPlugins, Collection<NotLoadedPlugin> notLoadedPlugins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginInfo
findLoadedPlugin(String id)
Collection<NotLoadedPlugin>
findNotLoadedPlugins(String id)
PluginData
findPluginData(String pluginName)
Collection<PluginInfo>
getAllPlugins()
Collection<PluginInfo>
getAllPlugins(String id)
Collection<PluginInfo>
getLoadedPlugins()
Collection<PluginData>
getLoadedPluginsData()
Collection<NotLoadedPlugin>
getNotLoadedPlugins()
boolean
hasNotLoadedPlugin(String id)
boolean
isPluginLoaded(String id)
-
-
-
Constructor Detail
-
PluginsStateImpl
public PluginsStateImpl(@NotNull Collection<PluginData> loadedPlugins, @NotNull Collection<NotLoadedPlugin> notLoadedPlugins)
-
-
Method Detail
-
getLoadedPlugins
@NotNull public Collection<PluginInfo> getLoadedPlugins()
- Specified by:
getLoadedPlugins
in interfacePluginsState
- Returns:
- collection of currently loaded plugins
-
getLoadedPluginsData
@NotNull public Collection<PluginData> getLoadedPluginsData()
- Specified by:
getLoadedPluginsData
in interfacePluginsState
- Returns:
- collection of currently loaded plugins data
-
getNotLoadedPlugins
@NotNull public Collection<NotLoadedPlugin> getNotLoadedPlugins()
- Specified by:
getNotLoadedPlugins
in interfacePluginsState
- Returns:
- collections of plugins not loaded currently
-
findNotLoadedPlugins
@NotNull public Collection<NotLoadedPlugin> findNotLoadedPlugins(@NotNull String id)
- Specified by:
findNotLoadedPlugins
in interfacePluginsState
- Parameters:
id
- id of plugins to find- Returns:
- collections of plugins with provided id not loaded currently
-
getAllPlugins
@NotNull public Collection<PluginInfo> getAllPlugins(@NotNull String id)
- Specified by:
getAllPlugins
in interfacePluginsState
- Parameters:
id
- id of plugins to find- Returns:
- collection of all known plugins with provided id - both loaded and unloaded
-
getAllPlugins
@NotNull public Collection<PluginInfo> getAllPlugins()
- Specified by:
getAllPlugins
in interfacePluginsState
- Returns:
- collection of all known plugins - both loaded and unloaded
-
findLoadedPlugin
@Nullable public PluginInfo findLoadedPlugin(@NotNull String id)
- Specified by:
findLoadedPlugin
in interfacePluginsState
- Parameters:
id
- id of plugin to find- Returns:
- PluginInfo of loaded plugin if it exists and is loaded or null otherwise
-
isPluginLoaded
public boolean isPluginLoaded(@NotNull String id)
- Specified by:
isPluginLoaded
in interfacePluginsState
- Parameters:
id
- id of plugin to find- Returns:
- true if the plugin with this id is loaded
-
hasNotLoadedPlugin
public boolean hasNotLoadedPlugin(@NotNull String id)
- Specified by:
hasNotLoadedPlugin
in interfacePluginsState
- Parameters:
id
- id of plugin to find- Returns:
- true if there is any not loaded plugin with this id
-
findPluginData
@Nullable public PluginData findPluginData(@NotNull String pluginName)
- Specified by:
findPluginData
in interfacePluginsState
- Returns:
- PluginData of loaded plugin if it exists and is loaded or null otherwise
-
-