Package com.google.gerrit.server.account
Class SetDiffPreferences
- java.lang.Object
-
- com.google.gerrit.server.account.SetDiffPreferences
-
- All Implemented Interfaces:
RestModifyView<AccountResource,DiffPreferencesInfo>
,RestView<AccountResource>
public class SetDiffPreferences extends Object implements RestModifyView<AccountResource,DiffPreferencesInfo>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffPreferencesInfo
apply(AccountResource rsrc, DiffPreferencesInfo in)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public DiffPreferencesInfo apply(AccountResource rsrc, DiffPreferencesInfo in) throws AuthException, BadRequestException, org.eclipse.jgit.errors.ConfigInvalidException, org.eclipse.jgit.errors.RepositoryNotFoundException, IOException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,DiffPreferencesInfo>
- Parameters:
rsrc
- resource to modify.in
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to 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.org.eclipse.jgit.errors.ConfigInvalidException
org.eclipse.jgit.errors.RepositoryNotFoundException
IOException
PermissionBackendException
-
-