I'm currently using openCMIS to create a node inside Alfresco. I want to specify that the newly made content uses a specific nodeRef id. For example:
workspace://SpacesStore/6e619192-61c0-46fc-85c1-81badbb9b93e
Currently I have this CMIS code:
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");
properties.put(PropertyIds.NAME, "TestFolder");
properties.put(PropertyIds.OBJECT_ID, "workspace://SpacesStore/6e619192-61c0-46fc-85c1-81badbb9b93e");
folder.createFolder(properties);
I want it that the newly made folder Names "TestFolder" has an nodeRef that matches the OBJECT_ID specified. However Alfresco still generates a different unique nodeRef.
Is there a way to specify a nodeRef when creating content in Alfresco?