Package io.milton.http
Interface DeleteHelper
- All Known Implementing Classes:
DeleteHelperImpl
public interface DeleteHelper
Supporting functions for the DeleteHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(DeletableResource r, EventManager eventManager) Delete the resource and any child resources The implementation should fire delete events for all resources physically deleted.booleanisLockedOut(Request req, Resource r) Check if the resource or any child resources are locked or otherwise not deletable
-
Method Details
-
isLockedOut
Check if the resource or any child resources are locked or otherwise not deletable- Parameters:
req-r-- Returns:
- Throws:
NotAuthorizedExceptionBadRequestException
-
delete
void delete(DeletableResource r, EventManager eventManager) throws NotAuthorizedException, ConflictException, BadRequestException Delete the resource and any child resources The implementation should fire delete events for all resources physically deleted.- Parameters:
r-- Throws:
NotAuthorizedExceptionConflictExceptionBadRequestException
-