cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing alfresco repository from custom java application

nikes
Champ on-the-rise
Champ on-the-rise
Hello all,

I am confused of diiferent types of API available for Alfresco.

I have been given a task to develop sample java web application which shows login page.
After login to alfresco repository using Alfresco user/password I have to diaplay one page from which user can upload document to particular space in Alfresco.

Which API I can use for the above requirement?

Does it require any Spring framework knowledge? or I can use simple Class/methods in JAR files provided by Alfresco?

Please provide links for the appropriate information.

thanks,
Nikesh
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
You can either use the "inprocess" Java API in which case your code will have to go into the alfresco war file.

Or you will want to connect from your application via one of the remote APIs.

From a remote custom java application your choce is in this order Web Scripts, Web Services and RMI.    There are other options but start with the preceding list.

Your first point of call will be to authentcate to log on.

nikes
Champ on-the-rise
Champ on-the-rise
Thanks mrogers,

Can you provide any sample code available to access out-of-box web scripts( provided by Alfresco) from web application (jsp/servlet)
(login to alfresco, create folders, upload documents)


Web-Scripts is new for me. I am used to code using plain java API (Example Filenet API). Does Alfresco provide JAR files containing JAVA API which I can use for all repository operations like login,create folder,upload/download documents etc……..


My requirement is to create folders(spaces) in Alfresco through custom web application (jsp/servlets) and upload documents to those spaces.

I have been assigned a task of migration of data/application from Filenet(IBM) to Alfresco. Current web application uses Filenet API so I have to search where all changes are needed to replace Filenet code with Alfresco API code.

Thanks,
Nikesh

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

If you want to use a straight forward Java API to communicate with a remote Alfresco repository with decent coverage of the Alfresco Foundation Services features you could use one of the following:

- Alfresco's Web services API (SOAP)
- Rivet Logic's Remote Alfresco API rivet (REST)

Hope this helps,

–Alaaeldin

nikes
Champ on-the-rise
Champ on-the-rise
Thanks Alaaeldin,

Are Rivet Logic's Remote Alfresco API rivet (REST) APIs free of cost? or we need to buy?

Thanks,
Nikesh

rivetlogic
Champ on-the-rise
Champ on-the-rise
It's free, as in it's open source with a GPL license.

Cheers,

–Alaaeldin