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 register DeleteHandler within it. Implementers of this interface must invoke the registered delete handlers appropriately when a DELETE operation is to be performed
    • 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 operation
        resource - 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.