cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to create content in a folder inside alfresco repository ?

abhinav
Champ on-the-rise
Champ on-the-rise
Hi All,
I am using Alfresco 5.0.a community edition.

I have java backed webscript where i get some some content from a from. I want to save that content to a folder (Other_Objects) e.g. '/Sites/archivepoc/documentLibrary/Other_Objects'.

I have gone through 'http://docs.alfresco.com/4.0/tasks/api-java-content-create.html' and CMIS Service. But i have read somewhere that in next version i.e. 5.0.b cmis feature is removed.

Is there any other best way to create content, please suggest.



Regards,
Abhinav
4 REPLIES 4

mlagneaux
Champ on-the-rise
Champ on-the-rise
I think that you're wrong saying that CMIS has been  removed from 5.0b version.
The historical Alfresco SOAP API (CML) has been removed in 5.0b in favor of CMIS.
The former CMIS endpoints (from 3.x and 4.0) has been removed but the endpoint introduced in 4.2 is still there.

abhinav
Champ on-the-rise
Champ on-the-rise
Hi
Thank you for your quick response.
Yeah you are correct, i got confused with this line 'The CMIS API endpoints from 3.x and 4.0 (superseded by the CMIS API endpoints in the Public API which have been available since 4.2)'.

So we have both options available to create content in alfresco repository (CMIS and Java API).
Now, my question is which is best way to create content ??


Regards,
Abhinav

mrogers
Star Contributor
Star Contributor
If you are remote the CMIS.  If local then Java.

abhinav
Champ on-the-rise
Champ on-the-rise
Thank You Mrogers!

Thanks for valuable suggestions. I will use Java API as the webscript which will save the content is deployed on the same host.