public class SetPreferences extends java.lang.Object implements RestModifyView<AccountResource,GeneralPreferencesInfo>
Modifier and Type | Method and Description |
---|---|
GeneralPreferencesInfo |
apply(AccountResource rsrc,
GeneralPreferencesInfo i)
Process the view operation by altering the resource.
|
static void |
storeMyChangeTableColumns(VersionedAccountPreferences prefs,
java.util.List<java.lang.String> changeTable) |
static void |
storeMyMenus(VersionedAccountPreferences prefs,
java.util.List<MenuItem> my) |
static void |
storeUrlAliases(VersionedAccountPreferences prefs,
java.util.Map<java.lang.String,java.lang.String> urlAliases) |
public GeneralPreferencesInfo apply(AccountResource rsrc, GeneralPreferencesInfo i) throws AuthException, BadRequestException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
RestModifyView
apply
in interface RestModifyView<AccountResource,GeneralPreferencesInfo>
rsrc
- resource to modify.i
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static void storeMyMenus(VersionedAccountPreferences prefs, java.util.List<MenuItem> my)
public static void storeMyChangeTableColumns(VersionedAccountPreferences prefs, java.util.List<java.lang.String> changeTable)
public static void storeUrlAliases(VersionedAccountPreferences prefs, java.util.Map<java.lang.String,java.lang.String> urlAliases)