AnsweredAssumed Answered

Not able to create custom content type using cmis

Question asked by alf_test on Sep 3, 2011
Latest reply on Sep 14, 2011 by alf_test

I have created a custom content type in alfresco(version 3.4.0) and this looks like:
<type name="ts:test_package">
         <title>test Content Type</title>
            <property name="test:testId">
            <property name="test:testname">

I am using apache open cmis 0.4 version.

Map<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.OBJECT_TYPE_ID, "F:ts:test_package");
properties.put(PropertyIds.NAME, "a new folder");

// create the folder
Folder newFolder = root.createFolder(properties);

However this custom content is not getting created.I am getting an exception of invalid type for the object Id.Any thing wrong i am doing here.And also is it possible to add aspects to the custom content type using cmis.