cancel
Showing results for 
Search instead for 
Did you mean: 

Create Type that is not content in Alfresco repository and calling it with Apache Chemistry

aelrwiny
Champ in-the-making
Champ in-the-making
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 crmsSmiley Surprisedrganization.

What is the parent that i can inherit from alfresco model and how to create it using Apache Chemistry?
4 REPLIES 4

kaynezhang
World-Class Innovator
World-Class Innovator
You can still use cm:content type as parent,just don't use cm:content property.

aelrwiny
Champ in-the-making
Champ in-the-making
@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".

kaynezhang
World-Class Innovator
World-Class Innovator
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

aelrwiny
Champ in-the-making
Champ in-the-making
@kaynezhang
I got it and thanks a lot for your help.