• OpenCMIS and OpenKM

  • 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.
 #44993  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
 #45007  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/

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.