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 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.
-
-
-
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:
getDisableReasonin 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)
-
-