Help - Alfresco APIs

52 views
Skip to first unread message

Maqsood Khan

unread,
Jan 5, 2015, 5:11:14 AM1/5/15
to alfresco-techn...@googlegroups.com
Hi,

I'm developing a desktop based application to ingest bulk content into alfresco from other sources. I'd like to know which would be the best Java APIs to consider for this application.
Alfresco RESTful API?

I tried using CMIS APIs. it works well in thread-safe mode, however get failed in multi-threaded mode for bulk ingestion.

I know alfresco does provide a bulk import tool but that doesn't fit into my problem.

Can somebody help me out with API and its details.

Thanks
Maqsood

Piergiorgio Lucidi

unread,
Feb 6, 2015, 9:25:04 AM2/6/15
to alfresco-techn...@googlegroups.com
Hi Maqsood,

an alternative way to build your own import tool could be based on creating a new REST service (a new Web Script) that can be invoked remotely from your custom client directly using HTTP.

This service could get contents from your external app and importing all the contents, please remember to disable the transaction element in the Web Script descriptor:

<transaction>none</transaction>

In this way if the batch will return an error you will find all the imported contents correctly inside Alfresco. Otherwise Alfresco Web Scripts by default exposes transactionally all the operations this means that if an error is returned for a single content, Alfresco will rollback all the imported contents removing all the imported nodes.

You can implement your Web Script using the JavaScript API or the Java API of Alfresco:

JavaScript examples:

Please see the Upload example that can help you.

Or you can take a look at the Java-Backed Web Scripts:

Hope this helps.

Raj Parakh

unread,
Oct 7, 2015, 11:06:43 AM10/7/15
to Alfresco Technical Discussion

Hi Maqsood,

I am trying to do the same. Can you please help if you found a solution. In my case I cannot tweak with the alfresco system at all and everything should be done by the standalone desktop application.

Regards,
Raj Parakh

sujay pillai

unread,
Oct 7, 2015, 11:11:59 AM10/7/15
to alfresco-techn...@googlegroups.com
Hello Raj,

Did you try out the "Alfresco Bulk Import Tool" from Peter Monks? You can find it here

Regards,
Sujay Pillai


--
You received this message because you are subscribed to the Google Groups "Alfresco Technical Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-d...@googlegroups.com.
To post to this group, send email to alfresco-techn...@googlegroups.com.
Visit this group at http://groups.google.com/group/alfresco-technical-discussion.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages