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 voidaddDeleteHandler(DeleteHandler deleteHandler)Registers a delete handlerbooleandelete(DeleteContext deleteContext, DavResource member)Delegates the delete operation to the fist handler that accepts it.static DeleteManagergetDefaultManager()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:DeleteManagerDelegates the delete operation to the fist handler that accepts it.- Specified by:
deletein interfaceDeleteManager- Parameters:
deleteContext- The context associated with the DELETE operationmember- 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.- See Also:
DeleteManager.delete(DeleteContext, DavResource)
-
addDeleteHandler
public void addDeleteHandler(DeleteHandler deleteHandler)
Description copied from interface:DeleteManagerRegisters a delete handler- Specified by:
addDeleteHandlerin interfaceDeleteManager- Parameters:
deleteHandler- Registers a delete handler with this delete manager- See Also:
DeleteManager.addDeleteHandler(DeleteHandler)
-
getDeleteHandlers
public DeleteHandler[] getDeleteHandlers()
Description copied from interface:DeleteManagerReturns the registered delete handlers- Specified by:
getDeleteHandlersin interfaceDeleteManager- Returns:
- An array of all the registered delete handlers.
- See Also:
DeleteManager.getDeleteHandlers()
-
getDefaultManager
public static DeleteManager getDefaultManager()
Returns this delete manager singleton
-
-