cancel
Showing results for 
Search instead for 
Did you mean: 

Can the content type of a document be updated through CMIS?

niele
Champ on-the-rise
Champ on-the-rise

Using Apache Chemistry, is it possible to specialize the content type of a document?  I tried the following:

Map<String, Object> properties = new HashMap<String, Object>()
properties.put(PropertyIds.OBJECT_TYPE_ID, "D:gry:policyType")
properties.put("gry:policyNumber", policyNumber)
document.updateProperties(properties)

The existing document is of type D:gry:content and D:grySmiley TongueolicyType is a subtype.  Through Alfresco Share I can use the "Change Type" action but when I try through CMIS it seems to be ignored.  Adding aspects or changing other properties works fine.

Thanks,

Neil

1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager

Can you create (not specialize) your custom content type from CMIS?

Hyland Developer Evangelist