public static class ChangeEdits.DeleteContent extends Object implements RestModifyView<ChangeEditResource,Input>
This deletes the file from the repository completely. This is not the same as reverting or restoring a file to its previous contents.
Modifier and Type | Method and Description |
---|---|
Response<?> |
apply(ChangeEditResource rsrc,
Input input)
Process the view operation by altering the resource.
|
Response<?> |
apply(ChangeResource rsrc,
String filePath) |
public Response<?> apply(ChangeEditResource rsrc, Input input) throws AuthException, ResourceConflictException, com.google.gwtorm.server.OrmException, IOException, PermissionBackendException
RestModifyView
apply
in interface RestModifyView<ChangeEditResource,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.ResourceConflictException
- the resource state does not permit this view to make the
changes at this time.com.google.gwtorm.server.OrmException
IOException
PermissionBackendException
public Response<?> apply(ChangeResource rsrc, String filePath) throws AuthException, IOException, com.google.gwtorm.server.OrmException, ResourceConflictException, PermissionBackendException
AuthException
IOException
com.google.gwtorm.server.OrmException
ResourceConflictException
PermissionBackendException