public static class ChangeEdits.DeleteContent extends java.lang.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,
java.lang.String filePath) |
public Response<?> apply(ChangeEditResource rsrc, Input input) throws AuthException, BadRequestException, ResourceConflictException, java.io.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.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.java.io.IOException
PermissionBackendException
public Response<?> apply(ChangeResource rsrc, java.lang.String filePath) throws AuthException, BadRequestException, java.io.IOException, ResourceConflictException, PermissionBackendException
AuthException
BadRequestException
java.io.IOException
ResourceConflictException
PermissionBackendException