Package com.google.gerrit.server.plugins
Class DisablePlugin
- java.lang.Object
-
- com.google.gerrit.server.plugins.DisablePlugin
-
- All Implemented Interfaces:
RestModifyView<PluginResource,DisablePlugin.Input>
,RestView<PluginResource>
public class DisablePlugin extends Object implements RestModifyView<PluginResource,DisablePlugin.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DisablePlugin.Input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginInfo
apply(PluginResource resource, DisablePlugin.Input input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public PluginInfo apply(PluginResource resource, DisablePlugin.Input input) throws MethodNotAllowedException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<PluginResource,DisablePlugin.Input>
- Parameters:
resource
- resource to modify.input
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
MethodNotAllowedException
-
-