<?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 Web Services e permessi in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-services-e-permessi/m-p/30725#M15794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao a tutti, dovrei realizzare un web service che ha come metodo getPermessi(String username,String uuid) che serve a verificare se l'utente passato ha i permessi di lettura sul nodo con l'uuid passato…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ho provato vari modi ma senza ottenere il risultato sperato..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;help me!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;grazie in anticipo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2010 10:24:25 GMT</pubDate>
    <dc:creator>tonyx360</dc:creator>
    <dc:date>2010-02-15T10:24:25Z</dc:date>
    <item>
      <title>Web Services e permessi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-services-e-permessi/m-p/30725#M15794</link>
      <description>Ciao a tutti, dovrei realizzare un web service che ha come metodo getPermessi(String username,String uuid) che serve a verificare se l'utente passato ha i permessi di lettura sul nodo con l'uuid passato…ho provato vari modi ma senza ottenere il risultato sperato..help me!!!grazie in anticipo</description>
      <pubDate>Mon, 15 Feb 2010 10:24:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-services-e-permessi/m-p/30725#M15794</guid>
      <dc:creator>tonyx360</dc:creator>
      <dc:date>2010-02-15T10:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Web Services e permessi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-services-e-permessi/m-p/30726#M15795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Utilizzando la Web Services API di Alfresco puoi invocare il metodo getACLs in questo modo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ACL[] acls = accessControlService.getACLs(predicate, filter);&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Il Predicate è un insieme di nodi su cui vuoi ottenere le informazioni della ACL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Altrimenti puoi implementarti un WebScript che ti restituisce questa informazioni direttamente estendendo Alfresco con una custom REST API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quindi a partire dalla tua custom url esposta su Alfresco:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/customService/permessi?username=j.doe&amp;amp;uuid=" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/customService/permessi?username=j.doe&amp;amp;uuid=&lt;/A&gt;…&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Devi implementare la logica che ti restituisce la stessa informazione riguardo i permessi utilizzando ad esempio la Javascript API di Alfresco:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if(node.hasPermission("Read")){&lt;BR /&gt;….&lt;BR /&gt;}&lt;BR /&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;SPAN&gt;In questo modo verrà verificato se l'utente che sta eseguendo lo script ha il permesso specificato nell'argomento del metodo sul nodo in cui viene invocato il metodo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.2_JavaScript_API#Permission_and_Security_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.2_JavaScript_API#Permission_and_Security_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 14:49:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-services-e-permessi/m-p/30726#M15795</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-03-05T14:49:48Z</dc:date>
    </item>
  </channel>
</rss>

