[xwiki-users] Differences between extensions (observation Module)
Hello People, I am needing to create an observation module In my XWiki to monitor the comments creation actions of a specific space. All time that someone put a comment I need to send an email to a specific group. I have found these two instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI When I use one or other? What is the event that the XWiki generates when someone input a comment? DocumentUpdatedEvent? Thanks! Danilo Grupo Energisa Danilo Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478 Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
Hi, On 29 May 2014 at 15:31:33, Danilo Amaral de Oliveira ([email protected](mailto:[email protected])) wrote:
Hello People,
I am needing to create an observation module In my XWiki to monitor the comments creation actions of a specific space. All time that someone put a comment I need to send an email to a specific group.
I have found these two instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI
When I use one or other?
You need the first one. The second one is for JS events not document-related events.
What is the event that the XWiki generates when someone input a comment? DocumentUpdatedEvent?
Best is to use CommentAddedEvent. Thanks -Vincent
Thanks! Danilo
On 29 May 2014 at 15:44:49, [email protected] ([email protected](mailto:[email protected])) wrote:
Hi,
On 29 May 2014 at 15:31:33, Danilo Amaral de Oliveira ([email protected](mailto:[email protected])) wrote:
Hello People,
I am needing to create an observation module In my XWiki to monitor the comments creation actions of a specific space. All time that someone put a comment I need to send an email to a specific group.
I have found these two instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI
When I use one or other?
You need the first one. The second one is for JS events not document-related events.
What is the event that the XWiki generates when someone input a comment? DocumentUpdatedEvent?
Best is to use CommentAddedEvent.
com.xpn.xwiki.internal.event.CommentAddedEvent to be precise -Vincent
Thanks -Vincent
Thanks! Danilo
I’ve created the following for you: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutori... ;-) -Vincent On 29 May 2014 at 15:31:33, Danilo Amaral de Oliveira ([email protected](mailto:[email protected])) wrote:
Hello People,
I am needing to create an observation module In my XWiki to monitor the comments creation actions of a specific space. All time that someone put a comment I need to send an email to a specific group.
I have found these two instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI
When I use one or other? What is the event that the XWiki generates when someone input a comment? DocumentUpdatedEvent?
Thanks! Danilo
Grupo Energisa Danilo Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Vicent, Awsome! I was exploring XWiki documentation and this page appeared to me, and I asked myself, how I could not find this page before, It could avoid unnecessarily question in the mail list. Now I see that was created today. Hahaha Thank you very much. Just one question. I have noticed that your are using the EventListener class. It was not replaced with the AbstractEventListener class? Thanks, Danilo De: Vincent Massol [mailto:[email protected]] Em nome de [email protected] Enviada em: quinta-feira, 29 de maio de 2014 13:41 Para: XWiki Users Cc: Danilo Amaral de Oliveira Assunto: Re: [xwiki-users] Differences between extensions (observation Module) I’ve created the following for you: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutori... ;-) -Vincent On 29 May 2014 at 15:31:33, Danilo Amaral de Oliveira ([email protected](mailto:[email protected])) wrote:
Hello People,
I am needing to create an observation module In my XWiki to monitor the comments creation actions of a specific space. All time that someone put a comment I need to send an email to a specific group.
I have found these two instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI
When I use one or other? What is the event that the XWiki generates when someone input a comment? DocumentUpdatedEvent?
Thanks! Danilo
Grupo Energisa Danilo Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
Grupo Energisa Danilo Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478 Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately. _______________________________________________
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Thu, May 29, 2014 at 7:40 PM, Danilo Amaral de Oliveira <[email protected]> wrote:
Vicent, Awsome!
I was exploring XWiki documentation and this page appeared to me, and I asked myself, how I could not find this page before, It could avoid unnecessarily question in the mail list. Now I see that was created today. Hahaha
Thank you very much.
Just one question. I have noticed that your are using the EventListener class.
It was not replaced with the AbstractEventListener class?
What is important is to implement EventListener, AbstractLogEventListener (which partially implements EventListener) is a helper which feets your use case or not but you don't have to use it.
Thanks, Danilo
De: Vincent Massol [mailto:[email protected]] Em nome de [email protected] Enviada em: quinta-feira, 29 de maio de 2014 13:41 Para: XWiki Users Cc: Danilo Amaral de Oliveira Assunto: Re: [xwiki-users] Differences between extensions (observation Module)
I’ve created the following for you:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListenerTutori...
;-)
-Vincent
On 29 May 2014 at 15:31:33, Danilo Amaral de Oliveira ([email protected](mailto:[email protected])) wrote:
Hello People,
I am needing to create an observation module In my XWiki to monitor the comments creation actions of a specific space. All time that someone put a comment I need to send an email to a specific group.
I have found these two instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI
When I use one or other? What is the event that the XWiki generates when someone input a comment? DocumentUpdatedEvent?
Thanks! Danilo
Grupo Energisa Danilo Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
Grupo Energisa Danilo Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
_______________________________________________
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (3)
-
Danilo Amaral de Oliveira -
Thomas Mortagne -
vincent@massol.net