Package com.google.gerrit.server.account
Class SetPreferences
- java.lang.Object
-
- com.google.gerrit.server.account.SetPreferences
-
- All Implemented Interfaces:
RestModifyView<AccountResource,GeneralPreferencesInfo>
,RestView<AccountResource>
public class SetPreferences extends Object implements RestModifyView<AccountResource,GeneralPreferencesInfo>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneralPreferencesInfo
apply(AccountResource rsrc, GeneralPreferencesInfo i)
Process the view operation by altering the resource.static void
storeMyChangeTableColumns(VersionedAccountPreferences prefs, List<String> changeTable)
static void
storeMyMenus(VersionedAccountPreferences prefs, List<MenuItem> my)
static void
storeUrlAliases(VersionedAccountPreferences prefs, Map<String,String> urlAliases)
-
-
-
Method Detail
-
apply
public GeneralPreferencesInfo apply(AccountResource rsrc, GeneralPreferencesInfo i) throws AuthException, BadRequestException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,GeneralPreferencesInfo>
- Parameters:
rsrc
- resource to modify.i
- 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.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
storeMyMenus
public static void storeMyMenus(VersionedAccountPreferences prefs, List<MenuItem> my) throws BadRequestException
- Throws:
BadRequestException
-
storeMyChangeTableColumns
public static void storeMyChangeTableColumns(VersionedAccountPreferences prefs, List<String> changeTable)
-
storeUrlAliases
public static void storeUrlAliases(VersionedAccountPreferences prefs, Map<String,String> urlAliases)
-
-