cancel
Showing results for 
Search instead for 
Did you mean: 

need to call basic CRUD on alfresco standalone

mfons
Champ in-the-making
Champ in-the-making
I would like to do basic CRUD operations on a standalone install of Alfresco from an external (Java) program.  I see there is an API for the cloud version of Alfresco, but is there an API for the standalone version as well?  If not is there a way to set up the standalone version to act like the cloud version in this regard? 

I am guessing that I would need to use the Alfresco SDK to implement a service to do this and then deploy this service to Alfresco's Tomcat server.  Or perhaps some of the Sample services that come with the SDK would provide this basic functionality.

I am hoping that I am wrong and that there is an easy way to call Alfresco and get/put my content without all this brain-damage.  🙂

Would love some help 🙂
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
You can use cmis api (for example  OpenCMIS client) or web script api.
there are no differences between cloud version api and standalone version api.

jpotts
World-Class Innovator
World-Class Innovator
No brain damage necessary. As kaynezhang points out, CMIS is your best option. You can get a CMIS client library for Java (OpenCMIS) from http://chemistry.apache.org. You can then use that to perform CRUD functions against Alfresco.

The "service URL" that you need depends on the version you are running. If you are running 4.0 - 4.2.c the URL is http://localhost:8080/alfresco/cmisatom.

If you are running 4.2.d the URL is one of these, depending on the version of CMIS you want to use:
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom

There are a lot of CMIS examples, blog posts, and even a book available to help you out.

Jeff