cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to create custom content type using cmis

alf_test
Champ in-the-making
Champ in-the-making
Hi,

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>
         <parent>cm:folder</parent>
         <properties>
            <property name="test:testId">
               <type>d:text</type>
            </property>
            <property name="test:testname">
               <type>d:text</type>
            </property>
         </properties>
      </type>

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.

Thanks
4 REPLIES 4

fmui
Champ in-the-making
Champ in-the-making
Make sure your model is activated. You can use the CMIS Workbench to check if your type is exposed through CMIS.
In order to work with aspects, you have to use the Alfresco OpenCMIS Extension [1].

- Florian


[1] http://apache-extras.org/p/alfresco-opencmis-extension

fmui
Champ in-the-making
Champ in-the-making

alf_test
Champ in-the-making
Champ in-the-making
Thanks its working now..Thanks for your replies..

cranuterj
Champ in-the-making
Champ in-the-making
Florian, where can i get Alfresco OpenCMIS Extension?