<?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 Problem with onContentRead in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-oncontentread/m-p/175294#M128424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently working on a system that has to be able to catch CRUD events from Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this I have used the built in PolicyComponent and the code which causes problems looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onContentRead"), ContentModel.ASPECT_AUDITABLE, new JavaBehaviour(this, "onContentRead", NotificationFrequency.TRANSACTION_COMMIT));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;What happens is that this function is triggered every time a piece of content (with the auditable aspect) is read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However for some reason this does not apply to images, that means that it works perfectly fine for&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*.doc, *.pdf, *.txt and so on - it even works for *.exe files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when it comes to images mime-types like *.jpg, *.png and other image files the trigger is only fired&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;once and then never again (not even if I log out and back into the alfresco web).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the following aswell &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onContentRead"), QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "cmobject"), new JavaBehaviour(this, "onContentRead", NotificationFrequency.EVERY_EVENT));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me back on track here? Perhaps there is some mime-type configuration I have been&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unable to find, or some special function i have not made use of? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco 2.1 Community…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter Nielsen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 10:28:56 GMT</pubDate>
    <dc:creator>ramsdal</dc:creator>
    <dc:date>2008-08-27T10:28:56Z</dc:date>
    <item>
      <title>Problem with onContentRead</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-oncontentread/m-p/175294#M128424</link>
      <description>Hello thereI am currently working on a system that has to be able to catch CRUD events from Alfresco.To do this I have used the built in PolicyComponent and the code which causes problems looks like this:this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI, "onCont</description>
      <pubDate>Wed, 27 Aug 2008 10:28:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-oncontentread/m-p/175294#M128424</guid>
      <dc:creator>ramsdal</dc:creator>
      <dc:date>2008-08-27T10:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with onContentRead</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-oncontentread/m-p/175295#M128425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have the same problem ,is it solve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 07:58:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-oncontentread/m-p/175295#M128425</guid>
      <dc:creator>kevinchen</dc:creator>
      <dc:date>2016-12-29T07:58:01Z</dc:date>
    </item>
  </channel>
</rss>

