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 DiffPreferencesInfoapply(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:RestModifyViewProcess the view operation by altering the resource.- Specified by:
applyin interfaceRestModifyView<ConfigResource,DiffPreferencesInfo>- Parameters:
configResource- resource to modify.input- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
BadRequestException- the request was incorrectly specified and cannot be handled by this view.IOExceptionorg.eclipse.jgit.errors.ConfigInvalidException
-
-