<?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: Searching for PATH children in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56949#M34529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;use the ServiceRegistry to get the NamespaceService as that supports the resolver interface for Alfresco and custom models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 14:37:54 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2006-09-27T14:37:54Z</dc:date>
    <item>
      <title>Searching for PATH children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56944#M34524</link>
      <description>I'm wanting to get all the children of a specific node, which after reading the docs seemed like it should be achievable by doing something like the following Node node = new Node(someNodeRef);String query = "PATH:\""+node.getPath()+"/*\"";[code]However, for some reason it only seems to work if I re</description>
      <pubDate>Tue, 26 Sep 2006 10:36:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56944#M34524</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2006-09-26T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for PATH children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56945#M34525</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;That is correct. It uses the XPATH prefix style.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Node node = new Node(someNodeRef);&lt;BR /&gt;String query = "PATH:\""+node.getPath().toPrefixString(resolver)+"/*\"";&lt;BR /&gt;&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Will give the correct path (prefixes and encoding of non allowed characters in PATH/XPATH)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 13:36:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56945#M34525</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-09-26T13:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for PATH children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56946#M34526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes sense, however node.getPath() returns a String value. Am I missing something here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 12:09:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56946#M34526</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2006-09-27T12:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for PATH children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56947#M34527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The issue is the Node class you are using (the web-client Node wrapper) returns the String version of the Path. You want the underlying repository Path object. This code should work in the web-client:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;NodeService nodeService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getNodeService();&lt;BR /&gt;Node node = new Node(nodeRef);&lt;BR /&gt;String query = "PATH:\"" + nodeService.getPath(nodeRef).toPrefixString(resolver) + "/*\""; &lt;BR /&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 12:58:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56947#M34527</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-09-27T12:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for PATH children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56948#M34528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Funny, I stumbled on this just before I got a notify email &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;. However, I can't figure out what Namespace resolver I should be using; not just for this instance, but in other cases too. Are there rules about what resolver to use where?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 13:06:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56948#M34528</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2006-09-27T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for PATH children</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56949#M34529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;use the ServiceRegistry to get the NamespaceService as that supports the resolver interface for Alfresco and custom models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 14:37:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-path-children/m-p/56949#M34529</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-09-27T14:37:54Z</dc:date>
    </item>
  </channel>
</rss>

