Class ChangeEdits.DeleteContent
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.ChangeEdits.DeleteContent
-
- All Implemented Interfaces:
RestModifyView<ChangeEditResource,Input>
,RestView<ChangeEditResource>
- Enclosing class:
- ChangeEdits
public static class ChangeEdits.DeleteContent extends Object implements RestModifyView<ChangeEditResource,Input>
Handler to delete a file.This deletes the file from the repository completely. This is not the same as reverting or restoring a file to its previous contents.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<?>
apply(ChangeEditResource rsrc, Input input)
Process the view operation by altering the resource.Response<?>
apply(ChangeResource rsrc, String filePath)
-
-
-
Method Detail
-
apply
public Response<?> apply(ChangeEditResource rsrc, Input input) throws AuthException, ResourceConflictException, com.google.gwtorm.server.OrmException, IOException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ChangeEditResource,Input>
- Parameters:
rsrc
- 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.com.google.gwtorm.server.OrmException
IOException
PermissionBackendException
-
apply
public Response<?> apply(ChangeResource rsrc, String filePath) throws AuthException, IOException, com.google.gwtorm.server.OrmException, ResourceConflictException, PermissionBackendException
- Throws:
AuthException
IOException
com.google.gwtorm.server.OrmException
ResourceConflictException
PermissionBackendException
-
-