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 StringTHE_PLUGIN_DOES_NOT_SUPPORT_SECONDARY_NODESstatic StringTHE_PLUGIN_IS_DISABLED_ON_THE_CURRENT_NODEstatic StringTHE_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 StringgetDisableReason(PluginInfo pluginInfo)An implementation can filter plugins by certain PluginInfo instance or some other parameters - server implementation enables/disables plugins by their namesbooleanisDisabledManually(String pluginName)voidsetEnabled(PluginInfo pluginInfo, boolean enabled)Makes a certain plugin enabled or disabled.voidsetEventDispatcher(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:ServerPluginDisabledInfoProviderAn implementation can filter plugins by certain PluginInfo instance or some other parameters - server implementation enables/disables plugins by their names- Specified by:
getDisableReasonin interfacePluginDisabledInfoProvider- Specified by:
getDisableReasonin 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:ServerPluginDisabledInfoProviderMakes a certain plugin enabled or disabled. This action can have effect on other plugins if implementation filters plugins eg by name- Specified by:
setEnabledin interfaceServerPluginDisabledInfoProvider
-
isDisabledManually
public boolean isDisabledManually(@NotNull String pluginName)- Specified by:
isDisabledManuallyin interfaceServerPluginDisabledInfoProvider
-
-