cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating alfresco with our web application

shiv
Champ on-the-rise
Champ on-the-rise
Hi

We have a web application which us developed in java(spring) . I want to integrate alfresco with our application so that i can save and retrieve the documents of different users.

How to achieve this. Im new to alfresco.
Any help is appreciated
Thanks in Adv
6 REPLIES 6

jpotts
World-Class Innovator
World-Class Innovator
You should download the OpenCMIS library from Apache Chemistry and use CMIS from your application to create, retrieve, update, and delete documents in the Alfresco repository.

A new book on Apache Chemistry and CMIS is coming out from Manning soon, so keep your eye out for that.

Jeff

shiv
Champ on-the-rise
Champ on-the-rise
Hi

I went through  OpenCmis  but tht is not what i want.
I want the full functionality of DMS and i want to integrate that with our web application.i.e, without logging in to alfresco and do some customization to change the UI as per my requirements
Should i be integrating Alfresco Share or Alfresco Explorer.
And how it is to be done.

Plz give me the full steps of what needs to be done

jpotts
World-Class Innovator
World-Class Innovator
If you want to embed Alfresco in your application, i.e., run the Alfresco repository in the same process as your application, then you will use the Java Foundation API. You can look at the First Foundation Client example in the Alfresco SDK.

If you want to customize the Alfresco Explorer client, you can, but be aware that it isn't really being actively developed. If you customize Alfresco Explorer you'll be using JSF and the Foundation Client.

If you want to customize Alfresco Share, you can do that. Alfresco Share uses the Surf Framework, which is a Spring Extension. Surf is a multi-tier MVC framework that uses server-side JavaScript in the controller (or Java) and FreeMarker in the view. A good source for examples of Share customizations is the Share Extras project on Google Code.

Other resources include the official documentation, Alfresco Wiki and Alfresco Blogs.

Finally, depending on your timeframe, you might be interested in the Alfresco API which we will be launching soon. It includes CMIS plus RESTful API calls for the Alfresco functionality that CMIS doesn't cover. Keep an eye out for more information about this.

Jeff

shiv
Champ on-the-rise
Champ on-the-rise
Hi

Thanks for the reply.

Can u give me an example where alfresco is embedded in web app.

And point me to some documents related to embedding alfresco to web app.

arjun2013
Champ in-the-making
Champ in-the-making
I was doing the integration with one of the e-commerce site “websphere commerce” using Alfresco  Alfresco Community 4.2  on tomcat
Created the contents (image files, pdf ) using  http://<host>Smiley Tongueort/share  and shared the contents. I got the RSS feed URL for my content but when I try to invoke the feed from web application web feed utility , got unauthorized error for the alfresco rss feed.  Details error I have copied below.
“An error occurred during data loader execution: An error occurred in the HTTP Connector. The error is : The HTTP head request to the resource returned a response with status code, 401, and reason line, Unauthorized”
RSS feed link  is : http://localhost:8080/share/feedservice/components/documentlibrary/feed/all/site/testsite/documentLi...
When I try to test same URL with web browser, system was asking username and password. After entering the details its works from browser.
Same way I have tried to using in my web application by passing user and pw but I am getting same unauthorized error.
http://localhost:8080/share/feedservice/components/documentlibrary/feed/all/site/testsite/documentLi...


one more issue :
I was not able to publish the content, when I try to do that I am getting “There is no appropriate publish channel”, create channel with available option Facebook still I was getting same error
Please help me to resolve these issues.

Thanks,
Arjun

amruta_w
Star Collaborator
Star Collaborator

Hello,

Even I want to integrate my spring boot microservice application to alfresco BPM. if you got solution or any link kindly share here, so that I can go through it.

Thanks

Amruta Wandakar