Page 1 of 1

Multiple SDK service calls

PostPosted:Tue Sep 12, 2017 4:46 am
by PSHREYASHOLLA
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.

Re: Multiple SDK service calls

PostPosted:Mon Sep 18, 2017 6:37 am
by jllort
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.