<?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 Webengine - Override security policies in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/webengine-override-security-policies/m-p/318532#M5533</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I developed a site "WebEngine" which gives access to a specific document type in Nuxeo with a url like "http://localhost:8080/nuxeo/site/depfile/a0454535-107a-43ee-9c4d-75a392d73b85/".&lt;/P&gt;
&lt;P&gt;I would like to override the security rights that anyone can read the document where it is on Nuxeo?&lt;/P&gt;
&lt;P&gt;Or otherwise use "admin" account to be able to do?&lt;/P&gt;
&lt;P&gt;Here is an excerpt of my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; @GET
 @Path("/{key}/")
 public Object getContenu(@PathParam("key") String key) {
     ctx.setProperty("key", key);
     String query = "SELECT * FROM Document WHERE ecm:uuid = '" + key + "' AND ecm:primaryType = 'FileShare'";
    try {
        DocumentModelList doc = ctx.getCoreSession().query(query);
        return getView("index").arg("Document", doc);
    } catch (ClientException e) {
        throw WebException.wrap(e);
    }
  }
 }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Feb 2013 09:38:41 GMT</pubDate>
    <dc:creator>Pierre_Jenicot1</dc:creator>
    <dc:date>2013-02-01T09:38:41Z</dc:date>
    <item>
      <title>Webengine - Override security policies</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/webengine-override-security-policies/m-p/318532#M5533</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I developed a site "WebEngine" which gives access to a specific document type in Nuxeo with a url like "http://localhost:8080/nuxeo/site/depfile/a0454535-107a-43ee-9c4d-75a392d73b85/".&lt;/P&gt;
&lt;P&gt;I would like to override the security rights that anyone can read the document where it is on Nuxeo?&lt;/P&gt;
&lt;P&gt;Or otherwise use "admin" account to be able to do?&lt;/P&gt;
&lt;P&gt;Here is an excerpt of my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; @GET
 @Path("/{key}/")
 public Object getContenu(@PathParam("key") String key) {
     ctx.setProperty("key", key);
     String query = "SELECT * FROM Document WHERE ecm:uuid = '" + key + "' AND ecm:primaryType = 'FileShare'";
    try {
        DocumentModelList doc = ctx.getCoreSession().query(query);
        return getView("index").arg("Document", doc);
    } catch (ClientException e) {
        throw WebException.wrap(e);
    }
  }
 }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2013 09:38:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/webengine-override-security-policies/m-p/318532#M5533</guid>
      <dc:creator>Pierre_Jenicot1</dc:creator>
      <dc:date>2013-02-01T09:38:41Z</dc:date>
    </item>
  </channel>
</rss>

