On Tue, Jun 17, 2014 at 10:25 AM, Paul Libbrecht <p...@hoplahup.net> 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())

>
> 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
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to