I am developing a universal CMIS 1.1 client application in JAVA using Apache Chemistry and CXF.
Currently I'm strugling with the hold capability of CMIS described here: http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.html#x1-13200016
When I create a secondary type in the InMemory repository with the id "cmis:rm_hold" and add this type to properties (cmis:secondaryObjectTypeIds) to any cmis:document the file still can be deleted.
Perhaps this is not the right way to do it.
Can someone please point me to the right direction to have this feature implemented?
The code I'm using to add the property:
CmisPropertiesType properties = new CmisPropertiesType();
CmisPropertyId propertyId = new CmisPropertyId();
propertyId.setPropertyDefinitionId("cmis:secondaryObjectTypeIds");
propertyId.getValue().add("cmis:rm_hold");
properties.getProperty().add(propertyId);
objectServicePort.updateProperties(
cmisContext.getRepositoryId(),
new Holder<String>(id.getDocId()), null, properties, null);
Thank you, Miretz