public class PutPreferred extends java.lang.Object implements RestModifyView<AccountResource.Email,com.google.gerrit.server.account.PutPreferred.Input>
Modifier and Type | Method and Description |
---|---|
Response<java.lang.String> |
apply(AccountResource.Email rsrc,
com.google.gerrit.server.account.PutPreferred.Input input)
Process the view operation by altering the resource.
|
Response<java.lang.String> |
apply(IdentifiedUser user,
java.lang.String email) |
public Response<java.lang.String> apply(AccountResource.Email rsrc, com.google.gerrit.server.account.PutPreferred.Input input) throws AuthException, ResourceNotFoundException, com.google.gwtorm.server.OrmException, java.io.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
java.io.IOException
public Response<java.lang.String> apply(IdentifiedUser user, java.lang.String email) throws ResourceNotFoundException, com.google.gwtorm.server.OrmException, java.io.IOException
ResourceNotFoundException
com.google.gwtorm.server.OrmException
java.io.IOException