<?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: Custom Security policy in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320569#M7570</link>
    <description>&lt;P&gt;Thank you for your answer! But I have another issue&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 19:33:32 GMT</pubDate>
    <dc:creator>a_c</dc:creator>
    <dc:date>2019-11-05T19:33:32Z</dc:date>
    <item>
      <title>Custom Security policy</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320567#M7568</link>
      <description>&lt;P&gt;Hi,
I need to block deletion of specific document types by user groups. I understand I need to write a custom security policy in order to achieve this, but I'm not sure how.
So far, I have a java class  extends AbstractSecurityPolicy implements SecurityPolicy  that overrides the checkPermission method that returns an Access class which grants or denies permission. Is this the right way to do it? Or will it simply block the read permissions?
Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 00:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320567#M7568</guid>
      <dc:creator>a_c</dc:creator>
      <dc:date>2019-11-05T00:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security policy</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320568#M7569</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I strongly advise you to watch &lt;A href="https://university.nuxeo.com/learn/course/external/view/elearning/171/SecurityPolicies"&gt;https://university.nuxeo.com/learn/course/external/view/elearning/171/SecurityPolicies&lt;/A&gt;. It contains all the needed information with a practical use case (sources are available to help you).&lt;/P&gt;
&lt;P&gt;General steps are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create your project with Nuxeo CLI&lt;/LI&gt;
&lt;LI&gt;Initialize your JAVA Class&lt;/LI&gt;
&lt;LI&gt;Write the CheckPermission method logic&lt;/LI&gt;
&lt;LI&gt;Build your SQLQueryTransformer&lt;/LI&gt;
&lt;LI&gt;Create an XML Extension&lt;/LI&gt;
&lt;LI&gt;Create your marketplace package&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:34:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320568#M7569</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-11-05T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security policy</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320569#M7570</link>
      <description>&lt;P&gt;Thank you for your answer! But I have another issue&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 19:33:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320569#M7570</guid>
      <dc:creator>a_c</dc:creator>
      <dc:date>2019-11-05T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security policy</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320570#M7571</link>
      <description>&lt;P&gt;Security Policies are core securities: therefore, they are not "controlled" by the UI, leading by the kind of erro you have (the typical 403 - PERMISSION DENIED). So I would advice to implement UI logics (with Javascript to implement your conditions, in &lt;CODE&gt;nuxeo-filter&lt;/CODE&gt; elements) in addition to the security policies.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 19:50:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-security-policy/m-p/320570#M7571</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-11-05T19:50:44Z</dc:date>
    </item>
  </channel>
</rss>

