hello,

thanks for the quick response.

but when i perform  Rename Im receiving  documentDeleteEvent and no 
DocumentUpdateEvent, this is happening in 2.0.3 release

Regards
Durga
On 23 Nov 2009, at 11:38, Thomas Mortagne wrote:

> On Mon, Nov 23, 2009 at 11:28, durgaprasad karri <[email protected]> wrote:
>> 
>> Hello,
>> 
>> I'm Using XWiki Enterprise 2.0.3
>> 
>> when i'm trying  to catch the events that are triggered from  rename and 
>> delete both the events are DocumentDeleteEvent.  I would like to know how 
>> xwiki is differentiating both these events  as i need to perform some 
>> actions depending upon the event which is triggered in my component .
>> 
>> 
>> In 2.0 version  when i do a rename action the event which is triggered is 
>> DocumentUpdateEvent and for the delete it is DocumentDeleteEvent . Is there 
>> anything which is changed in the implementation between the two releases. i 
>> checked the release notes and there is nothing explained about  this.
>> 
>> Can you help regarding this issue?
> 
> Actually there is no event associated to rename because there is no
> real rename "atomic" action. When you do a rename you should receive a
> DocumentUpdateEvent or DocumentSaveEvent (I don't remember) event when
> the document is copied and then a delete when the old document is
> removed. Maybe what changed is that the copy action has been fixed
> (because when you copy you create a new document you don't modify it)
> and you now receive DocumentSaveEvent instead of DocumentUpdateEvent.
> 
>> 
>> Regards
>> Durga
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>> 
> 
> 
> 
> -- 
> Thomas Mortagne
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to