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