Create Type that is not content in Alfresco repository and calling it with Apache Chemistry
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2014 03:09 AM
My business requires to create an organization type in the model which is not a content (cm:content) and hold the meta-data for the organizations that will use the repository. I tried to use sys:base and cm:cmobject as parent for the organization type but when i try to create organization type using Apache Chemistry throws exception org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException object not found crms
rganization.
What is the parent that i can inherit from alfresco model and how to create it using Apache Chemistry?

What is the parent that i can inherit from alfresco model and how to create it using Apache Chemistry?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2014 04:07 AM
You can still use cm:content type as parent,just don't use cm:content property.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2014 05:18 AM
@kaynezhang,
Thanks for your reply. I'm new to Alfresco and want to be sure that there is no other way to create a type in a custom content model that doesn't inherit from cm:content because no need to attach or add any content to the organization type although i know that we can keep it empty, and just want to save some meta-data that is related to each organization and call it from Apache Chemistry CMIS. Also please would you explain what you mean with "don't use cm:content property".
Thanks for your reply. I'm new to Alfresco and want to be sure that there is no other way to create a type in a custom content model that doesn't inherit from cm:content because no need to attach or add any content to the organization type although i know that we can keep it empty, and just want to save some meta-data that is related to each organization and call it from Apache Chemistry CMIS. Also please would you explain what you mean with "don't use cm:content property".
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2014 09:16 AM
If you call it from Apache Chemistry CMIS,you must inherit from cm:content. By "don't use cm:content property". I mean don't attach or add any content to the organization type
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2014 01:20 AM
@kaynezhang
I got it and thanks a lot for your help.
I got it and thanks a lot for your help.
