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 classDisablePlugin.Input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginInfoapply(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:RestModifyViewProcess the view operation by altering the resource.- Specified by:
applyin interfaceRestModifyView<PluginResource,DisablePlugin.Input>- Parameters:
resource- resource to modify.input- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
MethodNotAllowedException
-
-