Page 1 of 1

OpenCMIS and OpenKM

PostPosted:Tue Dec 05, 2017 6:25 am
by Dev
i am developing a web application with JSF, for file repository OpenKM 6.3.1 is used. i am using OpenCMIS for document uploading and downloading. all functionality is working as per requirement. however i am unable to get UUID of newly created document, the Document.getId() returns the full path of the document instead of UUID.
following code is used to create document
// create the document
Document newDoc = parent.createDocument(properties, contentStream, VersioningState.MAJOR);
from link
https://chemistry.apache.org/docs/cmis- ... index.html

i want to store UUID of the document in my application database.
please help.

Regards,
Arif

Re: OpenCMIS and OpenKM

PostPosted:Wed Dec 06, 2017 3:57 pm
by jllort
I think I have answered the same few days ago .. there's a method named getProperties or similar what return Properties. There it comes the uuid and other values. My suggestion is use OpenKM SDK for JAVA ( or another SDK ) because you will have more control and acess to all OpenKM API with our wrapper, consider take some minutes reading it https://docs.openkm.com/kcenter/view/sdk4j-1.1/