<?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 Change document access rights for content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/change-document-access-rights-for-content/m-p/178448#M131578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to be able to change the access rights for a piece of content (ie., change which users can see it) via Web Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I don't want to move the content to a folder to inherit the access rights of the folder.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- How can I search for content with a specified access right?&amp;nbsp; Can I do it as part of my search with Lucene?&amp;nbsp; How?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- How can I change the access rights via Web Services?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2008 00:01:38 GMT</pubDate>
    <dc:creator>ghernando</dc:creator>
    <dc:date>2008-12-10T00:01:38Z</dc:date>
    <item>
      <title>Change document access rights for content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-document-access-rights-for-content/m-p/178448#M131578</link>
      <description>I would like to be able to change the access rights for a piece of content (ie., change which users can see it) via Web Services.(I don't want to move the content to a folder to inherit the access rights of the folder.)- How can I search for content with a specified access right?&amp;nbsp; Can I do it as par</description>
      <pubDate>Wed, 10 Dec 2008 00:01:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-document-access-rights-for-content/m-p/178448#M131578</guid>
      <dc:creator>ghernando</dc:creator>
      <dc:date>2008-12-10T00:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change document access rights for content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-document-access-rights-for-content/m-p/178449#M131579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the first question I think you can use a Lucene query search by metadata content as cm:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String queryLucene = "PATH:\"/app:company_home/"+ALFRESCO_SPACE+"/*\" AND @cm\\:name:"+CONTENT_NAME;&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, queryLucene);&lt;BR /&gt;ResultSet rs = WebServiceFactory.getRepositoryService().query(STORE, query, false).getResultSet();&lt;BR /&gt;etc…&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;You can define more metadata modifying the Alfresco Content Model (CM) and so you will search by this your metadata related to all the contents created with this new content model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second question: you can change the access rights via Web Services using the AccessControlService:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WebServiceFactory.getAccessControlService();&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;and you can see the official wiki to get more information about all the methods available:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Access_Control_Web_Service" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Access_Control_Web_Service&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>Thu, 15 Jan 2009 14:03:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-document-access-rights-for-content/m-p/178449#M131579</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-01-15T14:03:18Z</dc:date>
    </item>
  </channel>
</rss>

