Package jetbrains.buildServer.plugins
Class ServerPluginDisabledInfoProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.plugins.ServerPluginDisabledInfoProviderImpl
-
- All Implemented Interfaces:
PluginDisabledInfoProvider
,ServerPluginDisabledInfoProvider
public class ServerPluginDisabledInfoProviderImpl extends Object implements ServerPluginDisabledInfoProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
THE_PLUGIN_DOES_NOT_SUPPORT_SECONDARY_NODES
static String
THE_PLUGIN_IS_DISABLED_ON_THE_CURRENT_NODE
static String
THE_PLUGIN_WAS_DISABLED_MANUALLY
-
Constructor Summary
Constructors Constructor Description ServerPluginDisabledInfoProviderImpl(ServerPaths serverPaths, PluginPaths pluginPaths, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisableReason(PluginInfo pluginInfo)
An implementation can filter plugins by certain PluginInfo instance or some other parameters - server implementation enables/disables plugins by their namesboolean
isDisabledManually(String pluginName)
void
setEnabled(PluginInfo pluginInfo, boolean enabled)
Makes a certain plugin enabled or disabled.void
setEventDispatcher(EventDispatcher<BuildServerListener> events)
-
-
-
Field Detail
-
THE_PLUGIN_IS_DISABLED_ON_THE_CURRENT_NODE
public static final String THE_PLUGIN_IS_DISABLED_ON_THE_CURRENT_NODE
- See Also:
- Constant Field Values
-
THE_PLUGIN_DOES_NOT_SUPPORT_SECONDARY_NODES
public static final String THE_PLUGIN_DOES_NOT_SUPPORT_SECONDARY_NODES
- See Also:
- Constant Field Values
-
THE_PLUGIN_WAS_DISABLED_MANUALLY
public static final String THE_PLUGIN_WAS_DISABLED_MANUALLY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerPluginDisabledInfoProviderImpl
public ServerPluginDisabledInfoProviderImpl(@NotNull ServerPaths serverPaths, @NotNull PluginPaths pluginPaths, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
setEventDispatcher
public void setEventDispatcher(@NotNull EventDispatcher<BuildServerListener> events)
-
getDisableReason
public String getDisableReason(@NotNull PluginInfo pluginInfo)
Description copied from interface:ServerPluginDisabledInfoProvider
An implementation can filter plugins by certain PluginInfo instance or some other parameters - server implementation enables/disables plugins by their names- Specified by:
getDisableReason
in interfacePluginDisabledInfoProvider
- Specified by:
getDisableReason
in interfaceServerPluginDisabledInfoProvider
- Parameters:
pluginInfo
- the plugin information- Returns:
- a reason why the plugin is disabled and should not be automatically loaded or null otherwise
-
setEnabled
public void setEnabled(@NotNull PluginInfo pluginInfo, boolean enabled)
Description copied from interface:ServerPluginDisabledInfoProvider
Makes a certain plugin enabled or disabled. This action can have effect on other plugins if implementation filters plugins eg by name- Specified by:
setEnabled
in interfaceServerPluginDisabledInfoProvider
-
isDisabledManually
public boolean isDisabledManually(@NotNull String pluginName)
- Specified by:
isDisabledManually
in interfaceServerPluginDisabledInfoProvider
-
-