Class SetEditPreferences
- java.lang.Object
-
- com.google.gerrit.server.restapi.config.SetEditPreferences
-
- All Implemented Interfaces:
RestModifyView<ConfigResource,EditPreferencesInfo>
,RestView<ConfigResource>
public class SetEditPreferences extends Object implements RestModifyView<ConfigResource,EditPreferencesInfo>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditPreferencesInfo
apply(ConfigResource configResource, EditPreferencesInfo input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public EditPreferencesInfo apply(ConfigResource configResource, EditPreferencesInfo input) throws BadRequestException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ConfigResource,EditPreferencesInfo>
- Parameters:
configResource
- 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:
BadRequestException
- the request was incorrectly specified and cannot be handled by this view.IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-