On Tue, Jun 17, 2014 at 11:05 AM, Thomas Mortagne
<[email protected]> wrote:
> On Tue, Jun 17, 2014 at 10:25 AM, Paul Libbrecht <[email protected]> wrote:
>>>> I just recopied the CommentEventListener which listens to changed 
>>>> comments, and that worked.
>>>> So I suspected by use of AttachmentDeletedEvent and AttachmentUpdatedEvent 
>>>> was wrong and I added DocumentUpdatedEvent as one of the types I was 
>>>> interested in. I am nicely receiving them.
>>>
>>> You did not listen to AttachmentAddedEvent ? AttachmentUpdatedEvent
>>> only refers to already existing attachment updated with a new version.
>>>
>>>> However, how can I know if the difference is in an attachment?
>>>> RCS?
>>
>>
>> Thanks Thomas,
>>
>> now I did listen to the AttachmentAddedEvent and it is indeed fired.
>> However… I do not see a way, from this event, to actually know which 
>> attachment was changed.
>> Is this not recorded?
>
> Should be AttachmentAddedEvent#getName() (actually
> AbstractDocumentEvent#getName())

The first parameter passed with the event (source) is the new
XWikiDocument instance.

>
>>
>> In my only experience about notifications, I had to diff quite many things 
>> and it does not seem like it's a good or necessary idea.
>>
>> thanks in advance.
>>
>> Paul
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to