<?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: CMIS ACL problem/question [SOLVED] in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255349#M208479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you look at the permission mapping in the result of calling getRepositoryInfo, you'll see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;cmis:mapping&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cmis:key&amp;gt;canCheckout.Document&amp;lt;/cmis:key&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cmis:permission&amp;gt;cmis:all&amp;lt;/cmis:permission&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cmis:permission&amp;gt;{&lt;A href="http://www.alfresco.org/model/content/1.0}lockable.CheckOut" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}lockable.CheckOut&lt;/A&gt;&amp;lt;/cmis:permission&amp;gt;&lt;BR /&gt;&amp;lt;/cmis:mapping&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This tells you that if you want your test user to be able to check out a document, you need to assign the "cmis:all" permission. If you do that, your user will be able to successfully perform a checkout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you are writing an interoperable client, before setting the ACL, check the permission mapping, then set the ACL to the correct CMIS permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Dec 2012 06:42:24 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2012-12-08T06:42:24Z</dc:date>
    <item>
      <title>CMIS ACL problem/question [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255348#M208478</link>
      <description>HiI'm trying to figure out how to use the CMIS Java API, in particular ACLs, but I run into a "CmisPermissionDeniedException: Forbidden" when I try to manipulate a document as a non-Administrator user.I have an Alfresco Community v4.2.0 (4428) schema 6019 running with an extra user called "user". I'</description>
      <pubDate>Wed, 05 Dec 2012 07:59:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255348#M208478</guid>
      <dc:creator>nickdegraeve</dc:creator>
      <dc:date>2012-12-05T07:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS ACL problem/question [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255349#M208479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you look at the permission mapping in the result of calling getRepositoryInfo, you'll see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;cmis:mapping&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cmis:key&amp;gt;canCheckout.Document&amp;lt;/cmis:key&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cmis:permission&amp;gt;cmis:all&amp;lt;/cmis:permission&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cmis:permission&amp;gt;{&lt;A href="http://www.alfresco.org/model/content/1.0}lockable.CheckOut" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}lockable.CheckOut&lt;/A&gt;&amp;lt;/cmis:permission&amp;gt;&lt;BR /&gt;&amp;lt;/cmis:mapping&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This tells you that if you want your test user to be able to check out a document, you need to assign the "cmis:all" permission. If you do that, your user will be able to successfully perform a checkout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you are writing an interoperable client, before setting the ACL, check the permission mapping, then set the ACL to the correct CMIS permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 06:42:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255349#M208479</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-12-08T06:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS ACL problem/question [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255350#M208480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to do it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;RepositoryInfo repositoryInfo = session.getRepositoryInfo();&lt;BR /&gt;AclCapabilities aclCapabilities = repositoryInfo.getAclCapabilities();&lt;BR /&gt;Map&amp;lt;String, PermissionMapping&amp;gt; permissionMappings = aclCapabilities.getPermissionMapping();&lt;BR /&gt;PermissionMapping permissionMapping = permissionMappings.get(PermissionMapping.CAN_CHECKOUT_DOCUMENT);&lt;BR /&gt;List&amp;lt;String&amp;gt; permissions = permissionMapping.getPermissions();&lt;BR /&gt;Ace addAce = session.getObjectFactory().createAce(principal, permissions);&lt;BR /&gt;List&amp;lt;Ace&amp;gt; addAces = new LinkedList&amp;lt;Ace&amp;gt;();&lt;BR /&gt;addAces.add(addAce);&lt;BR /&gt;document.addAcl(addAces, AclPropagation.REPOSITORYDETERMINED);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 08:38:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255350#M208480</guid>
      <dc:creator>nickdegraeve</dc:creator>
      <dc:date>2012-12-10T08:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS ACL problem/question [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255351#M208481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is possible to set a role (administrator or contributor) to a Group via CMIS?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:39:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-acl-problem-question-solved/m-p/255351#M208481</guid>
      <dc:creator>joyola83</dc:creator>
      <dc:date>2015-05-26T18:39:58Z</dc:date>
    </item>
  </channel>
</rss>

