public class SetPreferences extends Object implements RestModifyView<ConfigResource,GeneralPreferencesInfo>
Modifier and Type | Method and Description |
---|---|
GeneralPreferencesInfo |
apply(ConfigResource rsrc,
GeneralPreferencesInfo i)
Process the view operation by altering the resource.
|
public GeneralPreferencesInfo apply(ConfigResource rsrc, GeneralPreferencesInfo i) throws BadRequestException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
RestModifyView
apply
in interface RestModifyView<ConfigResource,GeneralPreferencesInfo>
rsrc
- resource to modify.i
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.IOException
org.eclipse.jgit.errors.ConfigInvalidException