<?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: PolicyComponent - How to use bindPropertyBehaviour? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279867#M232997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably require to study how exactly behavior and policy work in alfresco. Best way is just understand concept and checkout one of the sample provided by alfresco. Also checkout how alfresco use it internally in their classes.&lt;/P&gt;&lt;P&gt;You can call your code during each node update for content of specific type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;this.policyComponent.bindClassBehaviour(OnUpdateNodePolicy.QNAME,ContentModel.TYPE_CONTENT, this.onUpdateNode);&lt;/P&gt;&lt;TABLE height="140" style="width: 832px; height: 142px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;this.policyComponent.bindClassBehaviour(OnUpdatePropertiesPolicy.QNAME,ContentModel.TYPE_CONTENT, this.onUpdateProperties);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your class declaration should be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;ApprovedFilePolicy &lt;/SPAN&gt;implements&lt;/P&gt;&lt;P&gt;&amp;nbsp; NodeServicePolicies.OnUpdateNodePolicy,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NodeServicePolicies.OnUpdatePropertiesPolicy{&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2016 19:22:10 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2016-10-21T19:22:10Z</dc:date>
    <item>
      <title>PolicyComponent - How to use bindPropertyBehaviour?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279865#M232995</link>
      <description>Hello everyone,I am just wondering if bindPropertyBehaviour method is working or not. There are already several questions but no satisfying answer:behaviour not triggered on property changed or bindPropertyBehaviour not functioning correctly My example is&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ublic class ApprovedFilePolicy implements N</description>
      <pubDate>Fri, 21 Oct 2016 15:53:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279865#M232995</guid>
      <dc:creator>filip</dc:creator>
      <dc:date>2016-10-21T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: PolicyComponent - How to use bindPropertyBehaviour?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279866#M232996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The operation bindPropertyBehaviour is working just fine. The reason that the onUpdateProperties behaviour is not called is that it is not a "property policy" - it is a "class policy". If you think about it, the behaviour is about notifying about ALL property changes on a node of a specific class, not a specific property. This can also be seen with the bindAssociationBehaviour which can only be used for events that are association related, like onCreateAssociation or onCreateChildAssociation.&lt;/P&gt;&lt;P&gt;bindClassBehaviour in this case is not a workaround - it is actually the correct way of registering for onUpdateProperties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 17:41:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279866#M232996</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-10-21T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: PolicyComponent - How to use bindPropertyBehaviour?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279867#M232997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably require to study how exactly behavior and policy work in alfresco. Best way is just understand concept and checkout one of the sample provided by alfresco. Also checkout how alfresco use it internally in their classes.&lt;/P&gt;&lt;P&gt;You can call your code during each node update for content of specific type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;this.policyComponent.bindClassBehaviour(OnUpdateNodePolicy.QNAME,ContentModel.TYPE_CONTENT, this.onUpdateNode);&lt;/P&gt;&lt;TABLE height="140" style="width: 832px; height: 142px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;this.policyComponent.bindClassBehaviour(OnUpdatePropertiesPolicy.QNAME,ContentModel.TYPE_CONTENT, this.onUpdateProperties);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your class declaration should be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;ApprovedFilePolicy &lt;/SPAN&gt;implements&lt;/P&gt;&lt;P&gt;&amp;nbsp; NodeServicePolicies.OnUpdateNodePolicy,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NodeServicePolicies.OnUpdatePropertiesPolicy{&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 19:22:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279867#M232997</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2016-10-21T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: PolicyComponent - How to use bindPropertyBehaviour?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279868#M232998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Axel for the explanation. I understand that it is not a property policy. Anyway, could you give me any use case where bindPropertyBehaviour is used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 17:25:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/policycomponent-how-to-use-bindpropertybehaviour/m-p/279868#M232998</guid>
      <dc:creator>filip</dc:creator>
      <dc:date>2016-10-23T17:25:18Z</dc:date>
    </item>
  </channel>
</rss>

