<?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 getChildAssocs(): correct usage? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145911#M101932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a child-association&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;child-association name="my:myassoc"&amp;gt;&lt;BR /&gt;&amp;lt;!– … –&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and, given a node nodeRef, I want to get its children with respect to this association.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which one is correct, (a) or (b)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;qname= new QName(/* … */, "myassoc");&lt;BR /&gt;List&amp;lt;ChildAssociationRef&amp;gt; lista = session.nodeService.getChildAssocs(nodeRef, qname, RegexQNamePattern.MATCH_ALL); // (a)&lt;BR /&gt;List&amp;lt;ChildAssociationRef&amp;gt; listb = session.nodeService.getChildAssocs(nodeRef, RegexQNamePattern.MATCH_ALL, qname); // (b)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;From the &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/NodeService.html" rel="nofollow noopener noreferrer"&gt;API documentation&lt;/A&gt;&lt;SPAN&gt; it is not clear to me, what the second and third parameter are. Could somebody explain this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 20:20:51 GMT</pubDate>
    <dc:creator>hbf</dc:creator>
    <dc:date>2007-12-10T20:20:51Z</dc:date>
    <item>
      <title>getChildAssocs(): correct usage?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145911#M101932</link>
      <description>Hi,I have a child-association&amp;lt;child-association name="my:myassoc"&amp;gt;&amp;lt;!– … –&amp;gt;‍‍and, given a node nodeRef, I want to get its children with respect to this association.Which one is correct, (a) or (b)?qname= new QName(/* … */, "myassoc");List&amp;lt;ChildAssociationRef&amp;gt; lista = session.nodeSer</description>
      <pubDate>Mon, 10 Dec 2007 20:20:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145911#M101932</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2007-12-10T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(): correct usage?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145912#M101933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Kaspar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first one is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The second parameter of the method is the QName pattern of the association &lt;/SPAN&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The third parameter is the QName pattern of the association &lt;/SPAN&gt;&lt;STRONG&gt;instance&lt;/STRONG&gt;&lt;SPAN&gt; (often the same as the child node name, but qualified).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 08:58:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145912#M101933</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2007-12-11T08:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(): correct usage?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145913#M101934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the late reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks, Rivarola, that solved my problem completely!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 11:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-correct-usage/m-p/145913#M101934</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2008-01-08T11:04:26Z</dc:date>
    </item>
  </channel>
</rss>

