Package com.google.gerrit.server.change
Class ChangeEdits.Post
- java.lang.Object
-
- com.google.gerrit.server.change.ChangeEdits.Post
-
- All Implemented Interfaces:
RestModifyView<ChangeResource,ChangeEdits.Post.Input>
,RestView<ChangeResource>
- Enclosing class:
- ChangeEdits
public static class ChangeEdits.Post extends Object implements RestModifyView<ChangeResource,ChangeEdits.Post.Input>
Post to edit collection resource. Two different operations are supported:- Create non existing change edit
- Restore path in existing change edit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeEdits.Post.Input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<?>
apply(ChangeResource resource, ChangeEdits.Post.Input input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public Response<?> apply(ChangeResource resource, ChangeEdits.Post.Input input) throws AuthException, IOException, ResourceConflictException, com.google.gwtorm.server.OrmException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ChangeResource,ChangeEdits.Post.Input>
- Parameters:
resource
- resource to modify.input
- 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.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.IOException
com.google.gwtorm.server.OrmException
PermissionBackendException
-
-