Package org.apache.jackrabbit.server.io
Interface DeleteManager
-
- All Known Implementing Classes:
DeleteManagerImpl
public interface DeleteManager
The DeleteManager handles DELETE operation by delegating it to its handlers. It also provides a way to registerDeleteHandler
within 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 void
addDeleteHandler(DeleteHandler deleteHandler)
Registers a delete handlerboolean
delete(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:
true
if this instance successfully executed the delete operation with the given parameters;false
otherwise.- 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.
-
-