Package com.google.gerrit.server.plugins
Class EnablePlugin
- java.lang.Object
-
- com.google.gerrit.server.plugins.EnablePlugin
-
- All Implemented Interfaces:
RestModifyView<PluginResource,Input>,RestView<PluginResource>
public class EnablePlugin extends Object implements RestModifyView<PluginResource,Input>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginInfoapply(PluginResource resource, Input input)Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public PluginInfo apply(PluginResource resource, Input input) throws RestApiException
Description copied from interface:RestModifyViewProcess the view operation by altering the resource.- Specified by:
applyin interfaceRestModifyView<PluginResource,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:
AuthException- the client is not permitted to access this view.BadRequestException- the request was incorrectly specified and cannot be handled by this view.ResourceConflictException- the resource state does not permit this view to make the changes at this time.RestApiException
-
-