Package jetbrains.buildServer.plugins
Interface ServerPluginDisabledInfoProvider
-
- All Superinterfaces:
PluginDisabledInfoProvider
- All Known Implementing Classes:
ServerPluginDisabledInfoProviderImpl
public interface ServerPluginDisabledInfoProvider extends PluginDisabledInfoProvider
Server PluginDisabledInfoProvider interface allowing to programmatically enable and disable a certain plugin
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getDisableReason
@Nullable String getDisableReason(@NotNull PluginInfo pluginInfo)
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
- Parameters:
pluginInfo
-- Returns:
- a reason why the plugin is disabled and should not be automatically loaded or null otherwise
-
setEnabled
void setEnabled(@NotNull PluginInfo pluginInfo, boolean enabled)
Makes a certain plugin enabled or disabled. This action can have effect on other plugins if implementation filters plugins eg by name- Parameters:
pluginInfo
-enabled
-
-
isDisabledManually
boolean isDisabledManually(@NotNull String pluginName)
-
-