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 PluginInfofindLoadedPlugin(String id)Collection<NotLoadedPlugin>findNotLoadedPlugins(String id)PluginDatafindPluginData(String pluginName)Collection<PluginInfo>getAllPlugins()Collection<PluginInfo>getAllPlugins(String id)Collection<PluginInfo>getLoadedPlugins()Collection<PluginData>getLoadedPluginsData()Collection<NotLoadedPlugin>getNotLoadedPlugins()booleanhasNotLoadedPlugin(String id)booleanisPluginLoaded(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:
getLoadedPluginsin interfacePluginsState- Returns:
- collection of currently loaded plugins
-
getLoadedPluginsData
@NotNull public Collection<PluginData> getLoadedPluginsData()
- Specified by:
getLoadedPluginsDatain interfacePluginsState- Returns:
- collection of currently loaded plugins data
-
getNotLoadedPlugins
@NotNull public Collection<NotLoadedPlugin> getNotLoadedPlugins()
- Specified by:
getNotLoadedPluginsin interfacePluginsState- Returns:
- collections of plugins not loaded currently
-
findNotLoadedPlugins
@NotNull public Collection<NotLoadedPlugin> findNotLoadedPlugins(@NotNull String id)
- Specified by:
findNotLoadedPluginsin 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:
getAllPluginsin 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:
getAllPluginsin interfacePluginsState- Returns:
- collection of all known plugins - both loaded and unloaded
-
findLoadedPlugin
@Nullable public PluginInfo findLoadedPlugin(@NotNull String id)
- Specified by:
findLoadedPluginin 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:
isPluginLoadedin 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:
hasNotLoadedPluginin 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:
findPluginDatain interfacePluginsState- Returns:
- PluginData of loaded plugin if it exists and is loaded or null otherwise
-
-