Class SetDiffPreferences
- java.lang.Object
-
- com.google.gerrit.server.restapi.config.SetDiffPreferences
-
- All Implemented Interfaces:
RestModifyView<ConfigResource,DiffPreferencesInfo>
,RestView<ConfigResource>
public class SetDiffPreferences extends Object implements RestModifyView<ConfigResource,DiffPreferencesInfo>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffPreferencesInfo
apply(ConfigResource configResource, DiffPreferencesInfo input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public DiffPreferencesInfo apply(ConfigResource configResource, DiffPreferencesInfo 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,DiffPreferencesInfo>
- 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
-
-