<?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 set permanent permission with Java API? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313907#M908</link>
    <description>&lt;P&gt;I want to give permission in nuxeo through nuxeo api. i tried using this following code u wrote above. But I didn't work for me. In backend nuxeo Ui, I can't see the following permission which i have given to specific user.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2018 10:34:54 GMT</pubDate>
    <dc:creator>Avi_Jain</dc:creator>
    <dc:date>2018-01-18T10:34:54Z</dc:date>
    <item>
      <title>How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313903#M904</link>
      <description>&lt;P&gt;I am trying to assign a permanent permission to a group but in nuxeo permission is not working and it is not assigning to any user.
My Code is:&lt;/P&gt;
&lt;P&gt;String url = "http://localhost:8080/nuxeo";
NuxeoClient nuxeoClient = new NuxeoClient(url, "Administrator", "Administrator");
org.nuxeo.client.api.objects.Document pathDoc = nuxeoClient.repository().fetchDocumentById(docId);
GregorianCalendar begin = new GregorianCalendar(2015, Calendar.JUNE, 20, 12, 34, 56);
GregorianCalendar end = new GregorianCalendar(2015, Calendar.JULY, 14, 12, 34, 56);
ACE ace = new ACE();
ace.setUsername("user0");
ace.setPermission("Write");
ace.setCreator("Administrator");
ace.setBegin(begin);
ace.setEnd(end);
ace.setBlockInheritance(true);
pathDoc.addPermission(ace);&lt;/P&gt;
&lt;P&gt;How can I do this..?
Please help me I dont have any other support. Thanks for your support. It will be really helpful for me as I m doing this task since 10 days.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 09:15:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313903#M904</guid>
      <dc:creator>Avi_Jain</dc:creator>
      <dc:date>2018-01-06T09:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313904#M905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't understand why you're setting a begin and end date in 2015 for a permanent permission. The added permission won't be activated because the date period is over.&lt;/P&gt;
&lt;P&gt;You seem to use the 2.x java client, the supported version is 3.x which works with all Nuxeo version starting from LTS 2016 - 7.10.&lt;/P&gt;
&lt;P&gt;If you can use 3.x, you'll be able to not set begin/end date to make a permanent permission.&lt;/P&gt;
&lt;P&gt;Otherwise, there's a &lt;A href="https://jira.nuxeo.com/browse/JAVACLIENT-113"&gt;bug&lt;/A&gt; on permanent permission in 2.x, you'll need to workaround it.
You can follow &lt;A href="https://answers.nuxeo.com/general/q/3671a1cd542144219426b315a0fb71a0/How-to-set-permanent-permission-with-Java-API" target="test_blank"&gt;https://answers.nuxeo.com/general/q/3671a1cd542144219426b315a0fb71a0/How-to-set-permanent-permission-with-Java-API&lt;/A&gt; or set an end date in future, in 2100 for instance.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 12:51:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313904#M905</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2018-01-10T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313905#M906</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 08:43:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313905#M906</guid>
      <dc:creator>Avi_Jain</dc:creator>
      <dc:date>2018-01-15T08:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313906#M907</link>
      <description>&lt;P&gt;I just tried this test with latest nuxeo java client version (3.0.2-SNAPSHOT) and everything works&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 10:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313906#M907</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2018-01-16T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313907#M908</link>
      <description>&lt;P&gt;I want to give permission in nuxeo through nuxeo api. i tried using this following code u wrote above. But I didn't work for me. In backend nuxeo Ui, I can't see the following permission which i have given to specific user.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 10:34:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313907#M908</guid>
      <dc:creator>Avi_Jain</dc:creator>
      <dc:date>2018-01-18T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313908#M909</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 11:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313908#M909</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2018-01-18T11:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set permanent permission with Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313909#M910</link>
      <description>&lt;P&gt;Okay I'll try this way. and will sent u logs regarding this.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 12:10:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-permanent-permission-with-java-api/m-p/313909#M910</guid>
      <dc:creator>Avi_Jain</dc:creator>
      <dc:date>2018-01-18T12:10:01Z</dc:date>
    </item>
  </channel>
</rss>

