<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I be notified when an annotation is added to a document? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323620#M10621</link>
    <description>&lt;P&gt;I had already implement this feature for a project by adding a contribution to the &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.platform.ec.notification.service.NotificationService--notifications"&gt;notification extension point&lt;/A&gt; and it works fine. Below my contribution :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
  point="notifications"&amp;gt;
  &amp;lt;notification name="AnnotatedDocument" channel="email" enabled="true"
    availableIn="Workspace" autoSubscribed="false" 
    template="annotatedDocument" subject="Document annotated" 
    label="label.notification.annotations"&amp;gt;
    &amp;lt;event name="annotationCreated" /&amp;gt;
    &amp;lt;event name="annotationUpdated" /&amp;gt;
    &amp;lt;event name="annotationDeleted" /&amp;gt;
  &amp;lt;/notification&amp;gt;    
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And don't forget to declare your template linked to the previous notification :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
    point="templates"&amp;gt;
    &amp;lt;template name="annotatedDocument" src="templates/annotatedDocument.ftl" /&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jan 2012 10:34:51 GMT</pubDate>
    <dc:creator>Clément_Lardeur</dc:creator>
    <dc:date>2012-01-18T10:34:51Z</dc:date>
    <item>
      <title>Can I be notified when an annotation is added to a document?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323618#M10619</link>
      <description>&lt;P&gt;I would like to be notified when someone adds an annotation to a document.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 18:40:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323618#M10619</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2012-01-13T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I be notified when an annotation is added to a document?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323619#M10620</link>
      <description>&lt;P&gt;There are sevral ways to do this. You could for instance had a listener to the 'annotationCreated' event and manage the mail sending yourself.
Or you could add a contribution to the &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.platform.ec.notification.service.NotificationService--notifications"&gt;notification extension point&lt;/A&gt; . This will add a new possible subscription in the alert tab that anyone can subscribed to.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 18:41:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323619#M10620</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2012-01-13T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I be notified when an annotation is added to a document?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323620#M10621</link>
      <description>&lt;P&gt;I had already implement this feature for a project by adding a contribution to the &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.platform.ec.notification.service.NotificationService--notifications"&gt;notification extension point&lt;/A&gt; and it works fine. Below my contribution :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
  point="notifications"&amp;gt;
  &amp;lt;notification name="AnnotatedDocument" channel="email" enabled="true"
    availableIn="Workspace" autoSubscribed="false" 
    template="annotatedDocument" subject="Document annotated" 
    label="label.notification.annotations"&amp;gt;
    &amp;lt;event name="annotationCreated" /&amp;gt;
    &amp;lt;event name="annotationUpdated" /&amp;gt;
    &amp;lt;event name="annotationDeleted" /&amp;gt;
  &amp;lt;/notification&amp;gt;    
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And don't forget to declare your template linked to the previous notification :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
    point="templates"&amp;gt;
    &amp;lt;template name="annotatedDocument" src="templates/annotatedDocument.ftl" /&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2012 10:34:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-i-be-notified-when-an-annotation-is-added-to-a-document/m-p/323620#M10621</guid>
      <dc:creator>Clément_Lardeur</dc:creator>
      <dc:date>2012-01-18T10:34:51Z</dc:date>
    </item>
  </channel>
</rss>

