Package com.google.gerrit.server.account
Class StarredChanges.Create
- java.lang.Object
-
- com.google.gerrit.server.account.StarredChanges.Create
-
- All Implemented Interfaces:
RestModifyView<AccountResource,StarredChanges.EmptyInput>
,RestView<AccountResource>
- Enclosing class:
- StarredChanges
public static class StarredChanges.Create extends Object implements RestModifyView<AccountResource,StarredChanges.EmptyInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<?>
apply(AccountResource rsrc, StarredChanges.EmptyInput in)
Process the view operation by altering the resource.StarredChanges.Create
setChange(ChangeResource change)
-
-
-
Method Detail
-
setChange
public StarredChanges.Create setChange(ChangeResource change)
-
apply
public Response<?> apply(AccountResource rsrc, StarredChanges.EmptyInput in) throws RestApiException, com.google.gwtorm.server.OrmException, IOException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,StarredChanges.EmptyInput>
- Parameters:
rsrc
- resource to modify.in
- 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.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.RestApiException
com.google.gwtorm.server.OrmException
IOException
-
-