<?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: Java Client - get sub folders in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314742#M1743</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The &lt;CODE&gt;fetchChildrenById&lt;/CODE&gt; is designed to return all kind of documents, it calls the &lt;CODE&gt;@children&lt;/CODE&gt; web adapter server side.&lt;/P&gt;
&lt;P&gt;The url you give is a call to the &lt;CODE&gt;tree_children&lt;/CODE&gt; page provider. You can request a page provider with the java client with &lt;CODE&gt;Repository#queryByProvider&lt;/CODE&gt; API.
In your context, the call to do would be something like below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-java"&gt;repository().enrichersForDocument("hasFolderishChild")
            .queryByProvider("tree_children", "-1", "0", "", "", "", "FOLDER_ID");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: the java client is still using the query endpoint API which has been deprecated. We've planned to use search endpoint instead &lt;A href="https://jira.nuxeo.com/browse/JAVACLIENT-178"&gt;JAVACLIENT-178&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 10:10:29 GMT</pubDate>
    <dc:creator>Kevin_Leturc</dc:creator>
    <dc:date>2019-02-11T10:10:29Z</dc:date>
    <item>
      <title>Java Client - get sub folders</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314741#M1742</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there a method to get the subfolder list of a folder by its id ?
I found the repository().fetchChildrenById(id) method but it returns all documents (documents and folders).
In the UI, nuxeo is calling this url when we disclose a node in the tree :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://localhost:8080/nuxeo/api/v1/search/pp/tree_children/execute?currentPageIndex=0&amp;amp;pageSize=-1&amp;amp;sortBy=&amp;amp;sortOrder=&amp;amp;queryParams=FODER_ID" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/search/pp/tree_children/execute?currentPageIndex=0&amp;amp;pageSize=-1&amp;amp;sortBy=&amp;amp;sortOrder=&amp;amp;queryParams=FODER_ID&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;with this enricher in the request header :
X-NXenrichers.document : hasFolderishChild&lt;/P&gt;
&lt;P&gt;May be I can use the Java Client API to make this call ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:21:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314741#M1742</guid>
      <dc:creator>Ghazi_HAKIM</dc:creator>
      <dc:date>2019-02-07T18:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Java Client - get sub folders</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314742#M1743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The &lt;CODE&gt;fetchChildrenById&lt;/CODE&gt; is designed to return all kind of documents, it calls the &lt;CODE&gt;@children&lt;/CODE&gt; web adapter server side.&lt;/P&gt;
&lt;P&gt;The url you give is a call to the &lt;CODE&gt;tree_children&lt;/CODE&gt; page provider. You can request a page provider with the java client with &lt;CODE&gt;Repository#queryByProvider&lt;/CODE&gt; API.
In your context, the call to do would be something like below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-java"&gt;repository().enrichersForDocument("hasFolderishChild")
            .queryByProvider("tree_children", "-1", "0", "", "", "", "FOLDER_ID");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: the java client is still using the query endpoint API which has been deprecated. We've planned to use search endpoint instead &lt;A href="https://jira.nuxeo.com/browse/JAVACLIENT-178"&gt;JAVACLIENT-178&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 10:10:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314742#M1743</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2019-02-11T10:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Java Client - get sub folders</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314743#M1744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can get the sub-folders of a particular workspace/folder with this query&lt;/P&gt;
&lt;P&gt;nuxeoClient.repository() .query("SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isTrashed = 0 AND ecm:mixinType = 'Folderish' ",pageSize, pageNumber, null, "dc:title", "DESC", parentId);&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 04:52:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-client-get-sub-folders/m-p/314743#M1744</guid>
      <dc:creator>Jyothsna_SM1</dc:creator>
      <dc:date>2019-10-18T04:52:58Z</dc:date>
    </item>
  </channel>
</rss>

