> Hi all, > Is it possible to tell using ContentInterceptor > when nodes are deleted? I'm trying to do some special > processing whenever collections with a particular MIME > type are created or their immediate children are added > or deleted. I've subclassed ContentInterceptor and > used its postStoreContent() to detect when such > collections are created or children are added to them. > That works fine. > What I don't know is how to detect when those > child nodes are deleted. It appears to me that > postRetrieveContent() is called when my client deletes > a child node. I can see the deleted node's URI in the > NodeRevisionDescriptors object passed to > postRetrieveObject(). But I don't know how to > determine from within that method that the node has > actually been deleted. I tried doing a > structure.retrieve() on the deleted node's URI with > the hope of catching an ObjectNotFoundException. But > I don't think it is being thrown. > > Given this, is ContentInterceptor what I should be > using here or do I need to subclass the servlet? >
I have added to ContentInterceptor class the method postRemoveContent that would be a good place for you to do your job but the patch has not already been applied to the cvs tree. If you want to use it, retrieve this path from the dev list searching subject User quota supported. Be carefull with it, has not been tested a lot and if you find bugs, send feedback :-) > Thanks! You're welcome > -kevin JP > P.S. I'm using Slide 1.0.16 with JDBCDescriptorsStore > and FileContentStore. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
