AnsweredAssumed Answered

Best way to access Alfresco 4.1 repository from a java standalone application

Question asked by ramilramasola on Dec 12, 2016
Latest reply on Dec 31, 2016 by romschn

Hello Guys,

 

I'm creating a Java standalone application that zips a folder from Alfresco 4.1 repository and uploads the zipped folder back. I came across this question Accessing alfresco repository from custom java application which was years ago and I'm not sure if this still applies today. 

 

Based on the comments, the recommended approaches (in order of best to less recommended): Web Scripts, Web Services and RMI.

 

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:

1. Retrieve the folder and all its contents from the site document library (folder to be zipped)

2. Upload zipped folder to the site document library

3. Sets permissions to the zipped file (zipped file hidden to other users, or maybe read-only)

 

I also came across on Apache Chemistry - OpenCMIS Client API Developer's Guide but I'm still not familiar with this and still need to study on this.

 

Any thoughts on which is the best approach? Thanks!

Outcomes