Hi,When we are creating document using API, we give PropertyIds.NAME & PropertyIds.OBJECT_TYPE_ID.We would like to know if we can give customized object id which can be used further to fetch the document.Currently, following is used to create a document in Alfresco
Map<String, Object> propertiesDocument = new HashMap<String, Object>();
propertiesDocument.put(PropertyIds.NAME, "test_Aspect.pdf");
propertiesDocument.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");
FileInputStream oInputStream = new FileInputStream("/abc.txt");
ContentStream contentStream = new ContentStreamImpl("abc.txt", null, "application/octet-stream", oInputStream);
Document document = folder.createDocument(propertiesDocument, contentStream, VersioningState.MAJOR);
Last statemnt will give unique Object ID which can be used to fetch the document later. Can we give our own custom unique key which can be used to fetch document later?Thanks & Regards,Vipul Nandha