Package org.apache.jackrabbit.server.io
Class DeleteManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.server.io.DeleteManagerImpl
-
- All Implemented Interfaces:
DeleteManager
public class DeleteManagerImpl extends Object implements DeleteManager
-
-
Constructor Summary
Constructors Constructor Description DeleteManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDeleteHandler(DeleteHandler deleteHandler)
Registers a delete handlerboolean
delete(DeleteContext deleteContext, DavResource member)
Delegates the delete operation to the fist handler that accepts it.static DeleteManager
getDefaultManager()
Returns this delete manager singletonDeleteHandler[]
getDeleteHandlers()
Returns the registered delete handlers
-
-
-
Method Detail
-
delete
public boolean delete(DeleteContext deleteContext, DavResource member) throws DavException
Description copied from interface:DeleteManager
Delegates the delete operation to the fist handler that accepts it.- Specified by:
delete
in interfaceDeleteManager
- Parameters:
deleteContext
- The context associated with the DELETE operationmember
- 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.- See Also:
DeleteManager.delete(DeleteContext, DavResource)
-
addDeleteHandler
public void addDeleteHandler(DeleteHandler deleteHandler)
Description copied from interface:DeleteManager
Registers a delete handler- Specified by:
addDeleteHandler
in interfaceDeleteManager
- Parameters:
deleteHandler
- Registers a delete handler with this delete manager- See Also:
DeleteManager.addDeleteHandler(DeleteHandler)
-
getDeleteHandlers
public DeleteHandler[] getDeleteHandlers()
Description copied from interface:DeleteManager
Returns the registered delete handlers- Specified by:
getDeleteHandlers
in interfaceDeleteManager
- Returns:
- An array of all the registered delete handlers.
- See Also:
DeleteManager.getDeleteHandlers()
-
getDefaultManager
public static DeleteManager getDefaultManager()
Returns this delete manager singleton
-
-