<?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: Get metatadata and content of document in sub-folders - using Java backed webscript or CMIS quer in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-metatadata-and-content-of-document-in-sub-folders-using-java/m-p/106116#M29992</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;recursion to get all files of subfolder.&lt;/P&gt;&lt;P&gt;NodeService is used to get metada of files.&lt;/P&gt;&lt;P&gt;You can use ContentReader to get content of file.&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2020 09:06:46 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2020-05-09T09:06:46Z</dc:date>
    <item>
      <title>Get metatadata and content of document in sub-folders - using Java backed webscript or CMIS query</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-metatadata-and-content-of-document-in-sub-folders-using-java/m-p/106115#M29991</link>
      <description>&lt;P&gt;Under Document Library, under Document, I have the folder structure as:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Folder1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Folder 11&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Folder 111&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Doc1.pdf&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Doc2.pdf&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I know the starting point URL of Folder1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have written a java=backed WebScript using&amp;nbsp;WebScriptRequest and&amp;nbsp;WebScriptResponse. Within that webscript, I need to obtain the metadata and content of Doc1.pdf and Doc2.pdf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. With the starting point of Folder 1 being known to me, what API is available to navigate to the Doc1 and Doc2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Is any CMIS query available, which can be used inside the webscript to navigate to Doc1 and Doc2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. What API could be used to get the metadata of Doc1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. What API could be used to get the content of Doc1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Is there any API, or CMIS query available to find the count of the documents (count of Doc1, Doc2) that are at the lowest sub-folders?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 06:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-metatadata-and-content-of-document-in-sub-folders-using-java/m-p/106115#M29991</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2020-05-09T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get metatadata and content of document in sub-folders - using Java backed webscript or CMIS quer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-metatadata-and-content-of-document-in-sub-folders-using-java/m-p/106116#M29992</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;recursion to get all files of subfolder.&lt;/P&gt;&lt;P&gt;NodeService is used to get metada of files.&lt;/P&gt;&lt;P&gt;You can use ContentReader to get content of file.&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 09:06:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-metatadata-and-content-of-document-in-sub-folders-using-java/m-p/106116#M29992</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-05-09T09:06:46Z</dc:date>
    </item>
  </channel>
</rss>

