<?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: How to disable document&amp;apos;s link generated by Nuxeo after document gets trashed? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322293#M9294</link>
    <description>&lt;P&gt;Indeed! Updated&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jun 2020 16:02:05 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2020-06-21T16:02:05Z</dc:date>
    <item>
      <title>How to disable document&amp;apos;s link generated by Nuxeo after document gets trashed?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322290#M9291</link>
      <description>&lt;P&gt;I have uploaded a document in Nuxeo and got a link. I can download my document accessing that link. Now, I trashed my document and got &lt;STRONG&gt;"isTrashed": true&lt;/STRONG&gt; as well but still I can download my document using the link which is generated by Nuxeo. Is there any way by which I can restrict access to that URL after a document is trashed?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 07:33:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322290#M9291</guid>
      <dc:creator>Ankush_Bandil</dc:creator>
      <dc:date>2020-06-19T07:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable document&amp;apos;s link generated by Nuxeo after document gets trashed?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322291#M9292</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Settting a document to trash only update the &lt;CODE&gt;ecm:isTrashed&lt;/CODE&gt; propertty value but doesn't have an impact on the URL. This allows you to easily untrash a documentt (and consequenttly, not ot regenerate an URL).  For this use case, it probably needs to implement a custom secutiry policy (&lt;A href="https://doc.nuxeo.com/nxdoc/security-policy-service/"&gt;https://doc.nuxeo.com/nxdoc/security-policy-service/&lt;/A&gt;
).&lt;/P&gt;
&lt;P&gt;With something like this in your &lt;CODE&gt;checkPermission&lt;/CODE&gt; method:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Boolean isTrashed = Optional.ofNullable((Boolean) doc.getValue("ecm:isTrashed"))
                    .orElse(Boolean.FALSE);
            if (isTrashed) {
                return Access.DENY;
            }
	     else {
		 return Access.UNKNOWN
            }

	
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Jun 2020 19:23:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322291#M9292</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-06-20T19:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable document&amp;apos;s link generated by Nuxeo after document gets trashed?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322292#M9293</link>
      <description>&lt;P&gt;Hi. I think you wanted to put "isConfidential" in the "if" condition; or to call the Boolean "isTrashed"! Regards.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:55:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322292#M9293</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-06-21T08:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable document&amp;apos;s link generated by Nuxeo after document gets trashed?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322293#M9294</link>
      <description>&lt;P&gt;Indeed! Updated&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 16:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-disable-document-apos-s-link-generated-by-nuxeo-after/m-p/322293#M9294</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-06-21T16:02:05Z</dc:date>
    </item>
  </channel>
</rss>

