• Multiple SDK service calls

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #44654  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.
 #44659  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.