Not able to create custom content type using cmis
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2011 09:15 AM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2011 04:26 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2011 07:28 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2011 01:42 AM
Thanks its working now..Thanks for your replies..

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2014 07:43 AM
Florian, where can i get Alfresco OpenCMIS Extension?
