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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Customer

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

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
Highlighted
Alfresco Employee

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

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

Software Engineer in Alfresco Search Team.