public class PutPreferred extends Object implements RestModifyView<AccountResource.Email,com.google.gerrit.server.account.PutPreferred.Input>
Modifier and Type | Method and Description |
---|---|
Response<String> |
apply(AccountResource.Email rsrc,
com.google.gerrit.server.account.PutPreferred.Input input)
Process the view operation by altering the resource.
|
Response<String> |
apply(IdentifiedUser user,
String email) |
public Response<String> apply(AccountResource.Email rsrc, com.google.gerrit.server.account.PutPreferred.Input input) throws AuthException, ResourceNotFoundException, com.google.gwtorm.server.OrmException, IOException
RestModifyView
apply
in interface RestModifyView<AccountResource.Email,com.google.gerrit.server.account.PutPreferred.Input>
rsrc
- resource to modify.input
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.ResourceNotFoundException
com.google.gwtorm.server.OrmException
IOException
public Response<String> apply(IdentifiedUser user, String email) throws ResourceNotFoundException, com.google.gwtorm.server.OrmException, IOException
ResourceNotFoundException
com.google.gwtorm.server.OrmException
IOException