<?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 nxql all values in set in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-all-values-in-set/m-p/314074#M1075</link>
    <description>&lt;P&gt;All - I need to build an NXQL query that returns only the set of documents for which ALL values of a given multi-valued document schema property are in a set of values. E.g.:&lt;/P&gt;
&lt;P&gt;If principal A is allowed to see &lt;STRONG&gt;BLUE&lt;/STRONG&gt; and &lt;STRONG&gt;GREEN&lt;/STRONG&gt; then pseudo-nxql is: &lt;CODE&gt;select * from document where ALL occurrences of document.colors in ('BLUE', 'GREEN')&lt;/CODE&gt; and so a document having &lt;STRONG&gt;BLUE&lt;/STRONG&gt; and &lt;STRONG&gt;YELLOW&lt;/STRONG&gt; would be excluded. But principal B has &lt;STRONG&gt;BLUE&lt;/STRONG&gt;, &lt;STRONG&gt;GREEN&lt;/STRONG&gt;, and &lt;STRONG&gt;YELLOW&lt;/STRONG&gt; and so is allowed access because the pseudo-nxql would be: &lt;CODE&gt;select * from document where ALL occurrences of document.colors in ('BLUE', 'GREEN', YELLOW')&lt;/CODE&gt;. In other words the constraint list is driven by the principal's entitlements which can change at any time.&lt;/P&gt;
&lt;P&gt;Conceptually it's left outer join from document (L) to principal (R) with no NULL on the principal side of the join.&lt;/P&gt;
&lt;P&gt;I don't think NXQL supports this but - in case I missed something - I thought I would ask. Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 14:54:01 GMT</pubDate>
    <dc:creator>Eric_Ace</dc:creator>
    <dc:date>2021-05-14T14:54:01Z</dc:date>
    <item>
      <title>nxql all values in set</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-all-values-in-set/m-p/314074#M1075</link>
      <description>&lt;P&gt;All - I need to build an NXQL query that returns only the set of documents for which ALL values of a given multi-valued document schema property are in a set of values. E.g.:&lt;/P&gt;
&lt;P&gt;If principal A is allowed to see &lt;STRONG&gt;BLUE&lt;/STRONG&gt; and &lt;STRONG&gt;GREEN&lt;/STRONG&gt; then pseudo-nxql is: &lt;CODE&gt;select * from document where ALL occurrences of document.colors in ('BLUE', 'GREEN')&lt;/CODE&gt; and so a document having &lt;STRONG&gt;BLUE&lt;/STRONG&gt; and &lt;STRONG&gt;YELLOW&lt;/STRONG&gt; would be excluded. But principal B has &lt;STRONG&gt;BLUE&lt;/STRONG&gt;, &lt;STRONG&gt;GREEN&lt;/STRONG&gt;, and &lt;STRONG&gt;YELLOW&lt;/STRONG&gt; and so is allowed access because the pseudo-nxql would be: &lt;CODE&gt;select * from document where ALL occurrences of document.colors in ('BLUE', 'GREEN', YELLOW')&lt;/CODE&gt;. In other words the constraint list is driven by the principal's entitlements which can change at any time.&lt;/P&gt;
&lt;P&gt;Conceptually it's left outer join from document (L) to principal (R) with no NULL on the principal side of the join.&lt;/P&gt;
&lt;P&gt;I don't think NXQL supports this but - in case I missed something - I thought I would ask. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 14:54:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-all-values-in-set/m-p/314074#M1075</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2021-05-14T14:54:01Z</dc:date>
    </item>
  </channel>
</rss>

