<?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 PolicyComponent and Association Behaviours in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-and-association-behaviours/m-p/156372#M110625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to have some custom behaviour invoked when an association is changed on an item that has a given aspect. I think that I need to use PolicyComponent.bindAssociationBehaviour(QName policy, QName className, QName assocName, Behaviour behaviour) but could use some advice regarding the arguments I need to pass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I presume that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- "className" should be the qualified name of the aspect on which the association is defined;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- "assocName" should be the qualified name of the association type as defined on the aspect;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- "behaviour" should be a JavaBehaviour that points at my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am less clear on is what I should be using for the "policy" argument. I think that the relevant policies are likely to be OnCreateAssociationPolicy and OnDeleteAssociationPolicy, but I have no idea what their QNames are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give me some guidance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 10:58:09 GMT</pubDate>
    <dc:creator>bremmington</dc:creator>
    <dc:date>2008-06-03T10:58:09Z</dc:date>
    <item>
      <title>PolicyComponent and Association Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-and-association-behaviours/m-p/156372#M110625</link>
      <description>I would like to have some custom behaviour invoked when an association is changed on an item that has a given aspect. I think that I need to use PolicyComponent.bindAssociationBehaviour(QName policy, QName className, QName assocName, Behaviour behaviour) but could use some advice regarding the argum</description>
      <pubDate>Tue, 03 Jun 2008 10:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/policycomponent-and-association-behaviours/m-p/156372#M110625</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2008-06-03T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: PolicyComponent and Association Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/policycomponent-and-association-behaviours/m-p/156373#M110626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've worked out the answer to this. The necessary QName is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - QName.createQName(NamespaceService.ALFRESCO_URI, "onCreateAssociation") for the create association notification&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - QName.createQName(NamespaceService.ALFRESCO_URI, "onDeleteAssociation") for the delete association notification&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 12:19:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/policycomponent-and-association-behaviours/m-p/156373#M110626</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2008-06-03T12:19:51Z</dc:date>
    </item>
  </channel>
</rss>

