<?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 Best way to access Alfresco 4.1 repository from a java standalone application in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-access-alfresco-4-1-repository-from-a-java/m-p/294920#M248050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a Java standalone application that&amp;nbsp;zips a folder from Alfresco 4.1 repository and uploads the zipped folder back. I came across this question&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/167880"&gt;Accessing alfresco repository from custom java application&lt;/A&gt;&amp;nbsp;which was years ago and I'm not sure if this still applies today.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the comments, the recommended approaches (in order of best to less recommended): Web Scripts, Web Services and RMI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already tried developing using Alfresco Web Scripts months ago and I must say it's easy to implement. What I want to know if this is still the way to go on Alfresco 4.1 or are there any Web scripts available that do what I need to do:&lt;/P&gt;&lt;P&gt;1. Retrieve the folder and all its contents from the site document library (folder to be zipped)&lt;/P&gt;&lt;P&gt;2. Upload zipped folder to the site&amp;nbsp;document library&lt;/P&gt;&lt;P&gt;3. Sets permissions to the zipped file (zipped file hidden to other users, or maybe read-only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also came across on &lt;A class="link-titled" href="http://chemistry.apache.org/java/developing/guide.html" title="http://chemistry.apache.org/java/developing/guide.html" rel="nofollow noopener noreferrer"&gt;Apache Chemistry - OpenCMIS Client API Developer's Guide&lt;/A&gt;&amp;nbsp;but I'm still not familiar with this and still need to study on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on which is the best approach? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 03:30:49 GMT</pubDate>
    <dc:creator>ramilramasola</dc:creator>
    <dc:date>2016-12-12T03:30:49Z</dc:date>
    <item>
      <title>Best way to access Alfresco 4.1 repository from a java standalone application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-access-alfresco-4-1-repository-from-a-java/m-p/294920#M248050</link>
      <description>Hello Guys,I'm creating a Java standalone application that&amp;nbsp;zips a folder from Alfresco 4.1 repository and uploads the zipped folder back. I came across this question&amp;nbsp;Accessing alfresco repository from custom java application&amp;nbsp;which was years ago and I'm not sure if this still applies today.&amp;nbsp;Based on</description>
      <pubDate>Mon, 12 Dec 2016 03:30:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-access-alfresco-4-1-repository-from-a-java/m-p/294920#M248050</guid>
      <dc:creator>ramilramasola</dc:creator>
      <dc:date>2016-12-12T03:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to access Alfresco 4.1 repository from a java standalone application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-access-alfresco-4-1-repository-from-a-java/m-p/294921#M248051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For #1, to download folders as a zip file, there is already an add-on available. Kindly take a look at &lt;A class="" href="https://addons.alfresco.com/addons/compress-and-download-share-action-zip" title="https://addons.alfresco.com/addons/compress-and-download-share-action-zip" rel="nofollow noopener noreferrer"&gt;"Compress and Download" Share Action (ZIP) | Alfresco Add-ons - Alfresco Customizations&lt;/A&gt;&amp;nbsp;.&amp;nbsp;It is mentioned that it works for Enterprise v 4.1. The above link gives all the details about the add-on. I think this add-on would be useful for you. If you are using community version then you might need to verify if it is working for community v 4.1 or not.&lt;/P&gt;&lt;P&gt;For #2, For uploading a file back to Alfresco repository, you should be able to use the upload web script available out-of-the-box. See if it works for you.&lt;/P&gt;&lt;P&gt;For #3, You could apply permissions as required (may be by setting up a business rule when a zip file is uploaded or through behaviour/policies)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2016 04:55:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-access-alfresco-4-1-repository-from-a-java/m-p/294921#M248051</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2016-12-31T04:55:06Z</dc:date>
    </item>
  </channel>
</rss>

