cancel
Showing results for 
Search instead for 
Did you mean: 

Different ways of retrieving(read and display the content of document ) Alfresco uploaded document using any API

narayana_giri
Champ in-the-making
Champ in-the-making
Hi,

Would like to know what are all the different ways of retrieving Alfresco uploaded document.

Here are my particular scenarios:

I have uploaded the documents using the Alfresco(Community Version 4.e) provided SDK Web Services.

I know we can construct the uploaded document URL using UUID and can access it from the SDK Web Services.

01. Are there any other ways of retrieving Alfresco uploaded document using any other APIs.
02. Can we retrieve using Sys DB Id.
03. Can we retrieve using custom aspect if(I created a customd aspect to provide unique id for each uploaded document)
04. Are there any other ids that I can use to retrieve using any APIs.

Please guide or point to any link or document that provides the information.


4 REPLIES 4

kaynezhang
World-Class Innovator
World-Class Innovator
1.You can also retrive document using opencmis api or webscript api through uuid or path
2. sys db id is for internal use only.
3.you can retrieve custom aspect using opencmis api or webscript api.
4.you 'd better retrive document just through uuid or path

mrogers
Star Contributor
Star Contributor
Yes.   There are a large number of interfaces and APIs.  

The most obvious is Alfresco Share and Alfresco Explorer.

The remote APIs are the REST PublicAPI, CMIS (Atom, WebService, WebScript), The REST Private API, RMI, CIFS, FTP, WebService, IMAP, SPP, WebDav, JMX

The local APIs are Java, JCR and Alfresco Script.      There are probably others like php, groovy and scala.

Hi Thanks for all the information.

I have created an aspect(through web scipt) to assign a unique id to each document. Is it possible to retrieve the document using just the above unique id aspect.

If we migrate from Community version 4.0 to any latest versions of alfresco community versions, will UUID remain same or will be changed?

Is there anyway to retain the same UUID in case of migration?

mrogers
Star Contributor
Star Contributor
To retrieve by your aspect you will need to search first and then get the document in a second call.

Your NodeRefs (uuids) will be preserved on upgrade and migration.