<?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 Cmis query confinment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288146#M241276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, I have a simple WCMQS collection query for retrieving asset marked with custom aspect I did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select d.*, w.* from cmis:document as d join wzm:inmenu as w on d.cmis:objectId = w.cmis:objectId where w.wzm:menu = true order by w.wzm:rank&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine, but it's retrieving all assets from the repository. Instead I would like to limit the collection query within its ws:root folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The assets with custom aspects are located in more than a folder, and the collection is at root folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Root (authoring)&lt;BR /&gt;+—&amp;gt;collection&lt;BR /&gt;+—&amp;gt;info&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +—&amp;gt;home.html (custom aspect)&lt;BR /&gt;+—&amp;gt;portfolio&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +—&amp;gt;whatever.html&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;/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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I accomplish that ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 07:36:26 GMT</pubDate>
    <dc:creator>leonardo_celati</dc:creator>
    <dc:date>2014-04-16T07:36:26Z</dc:date>
    <item>
      <title>Cmis query confinment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288146#M241276</link>
      <description>Hi all, I have a simple WCMQS collection query for retrieving asset marked with custom aspect I did.select d.*, w.* from cmis:document as d join wzm:inmenu as w on d.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId = w.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId where w.wzm:menu = true order by w.wzm:rank‍‍‍It works fine, but it's retrieving all assets from the r</description>
      <pubDate>Wed, 16 Apr 2014 07:36:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288146#M241276</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-16T07:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query confinment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288147#M241277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use IN_TREE() function or CONTAINS() function&amp;nbsp; to narrow down the search at particular location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select d.*, w.* from cmis:document as d join wzm:inmenu as w on d.cmis:objectId = w.cmis:objectId where w.wzm:menu = true order by w.wzm:rank and CONTAINS(d,'PATH:"//Sites"')&lt;BR /&gt;select d.*, w.* from cmis:document as d join wzm:inmenu as w on d.cmis:objectId = w.cmis:objectId where w.wzm:menu = true order by w.wzm:rank and IN_TREE(d, 'workspace://SpacesStore/5aece435-b231-468f-a306-1043fe26894a')&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 08:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288147#M241277</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-16T08:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query confinment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288148#M241278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, you gave me some useful tips. However, the point is that the path is hardcoded, this results in having two queries, one for the authoring folder and one for the publishing folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be perfect if this could be parametric, like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;in_tree(d, ${startFromWebSiteRootWhereYouBelongThenLookInAllChildren})&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you get the point &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 09:07:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288148#M241278</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-16T09:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query confinment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288149#M241279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;by the way is it possible to use where condition like the one below ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;.. AND (IN_TREE(d, 'path1') OR IN_TREE(d, 'path2')) ORDER BY ….&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried but I am getting no result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 10:50:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288149#M241279</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-16T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query confinment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288150#M241280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; AND (IN_TREE(d, 'path1') OR IN_TREE(d, 'path2')) &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason why you didn't get any result is that IN_TREE's parameter is node id .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it should be like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;workspace://SpacesStore/ce55a850-b1c7-43c7-a600-b5c58a985429&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 11:09:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-confinment/m-p/288150#M241280</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-16T11:09:00Z</dc:date>
    </item>
  </channel>
</rss>

