Package org.apache.jackrabbit.server.io
Interface DeleteManager
-
- All Known Implementing Classes:
DeleteManagerImpl
public interface DeleteManagerThe DeleteManager handles DELETE operation by delegating it to its handlers. It also provides a way to registerDeleteHandlerwithin it. Implementers of this interface must invoke the registered delete handlers appropriately when a DELETE operation is to be performed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDeleteHandler(DeleteHandler deleteHandler)Registers a delete handlerbooleandelete(DeleteContext deleteContext, DavResource resource)Delegates the delete operation to the fist handler that accepts it.DeleteHandler[]getDeleteHandlers()Returns the registered delete handlers
-
-
-
Method Detail
-
delete
boolean delete(DeleteContext deleteContext, DavResource resource) throws DavException
Delegates the delete operation to the fist handler that accepts it.- Parameters:
deleteContext- The context associated with the DELETE operationresource- The resource to be deleted- Returns:
trueif this instance successfully executed the delete operation with the given parameters;falseotherwise.- Throws:
DavException- If an error occurs.
-
addDeleteHandler
void addDeleteHandler(DeleteHandler deleteHandler)
Registers a delete handler- Parameters:
deleteHandler- Registers a delete handler with this delete manager
-
getDeleteHandlers
DeleteHandler[] getDeleteHandlers()
Returns the registered delete handlers- Returns:
- An array of all the registered delete handlers.
-
-