Multiple SDK service calls

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
Senior Boarder
Senior Boarder
Posts: 47
Joined: Thu Dec 22, 2016 4:18 am

Multiple SDK service calls

Post by PSHREYASHOLLA » Tue Sep 12, 2017 4:46 am

Hi Jllort,

We are using Java SDK 1.1. Once the document is uploaded to OpenKM,we want to retrieve the document from OpenKM with documentID.

So we need the
1. Document Contents :

InputStream documentContent = OKMWebservicesFactory.getContent(documentID);

2. Document MIME type
a) Document documentProperties=OKMWebservicesFactory.getDocumentProperties(documentID);
b) String documentType= documentProperties.getMimeType();

Here to fetch document Contents and Document Type we are making 2 OKMWebservicesFactory API calls.
We are looking for an Single API call which will get all the document details. Do we have that service?

Thanks And Regards,
Shreyas Holla P.

Posts: 10024
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: Multiple SDK service calls

Post by jllort » Mon Sep 18, 2017 6:37 am

If you think on it, you will understanding is not possible. When you get the content you are retrieving an stream, meanwhile document type, etc... is a variable into a bean value. From REST point of view is not good idea - and I do not know if really is possible - merge anything with the stream output.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests