cancel
Showing results for 
Search instead for 
Did you mean: 

Which is best, inherit from sys:base or cm:content

mohammed_amr
Champ in-the-making
Champ in-the-making
What is the difference between content model inherit the sys:base, and another one inherit cm:content and which is best to used as parent for my content model and what are the criterion that i need to consider to take a decision  ?

I have sys:base, cm:cmobject and cm:content and my be others. what are the differences between all of them and what is the best one i can use it as parent to my content model ?

In other words, is there any advantage to inherit one of them over another ?

Thanks
Mohammed Amr
Senior System Developer
Digital Series Co.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
It rather depends upon whether you have some content :roll:      In general most things in alfresco are cm:content,  but there's important things like folders, people and groups that don't.

mohammed_amr
Champ in-the-making
Champ in-the-making
Can you advise me about the criterion must be enforced to take a certain path in the development and what are the impacts for two type of paths.

Can you look at the content model

<?xml version="1.0" encoding="UTF-8"?>

<model name="secSmiley FrustratedecurityContentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   
   <description>Security Content Model</description>
   <author>MOHAMMED AMR</author>
   <version>1.0</version>

   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
      <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
        <import uri="http://www.alfresco.org/model/user/1.0" prefix="usr"/>
   </imports>
   
   <namespaces>
      <namespace uri="www.ds.alfresco.security.extension.com" prefix="sec" />
   </namespaces>
   
      
   <types>
   
      <type name="secSmiley SurprisedrganizationSequence">
         <title>Sequence</title>
         <parent>cm:content</parent>
         <properties>
            <property name="sec:sequenceId">
               <title>Sequence</title>
               <type>d:int</type>
            </property>
            <property name="sec:sequenceName">
               <title>Sequence Name</title>
               <type>d:text</type>
            </property>
         </properties>
      </type>
      
      <type name="secSmiley TongueositionSequence">
         <title>Sequence</title>
         <parent>cm:content</parent>
         <properties>
            <property name="sec:sequenceId">
               <title>Sequence</title>
               <type>d:int</type>
            </property>
            <property name="sec:sequenceName">
               <title>Sequence Name</title>
               <type>d:text</type>
            </property>
         </properties>
      </type>      
      
      <type name="secSmiley Tongueosition">
         <title>Position</title>
         <parent>cm:content</parent>
         <properties>
            <property name="secSmiley TongueositionId">
               <title>Position ID</title>
               <type>d:int</type>
            </property>
            <property name="secSmiley TongueositionName">
               <title>Position Name</title>
               <type>d:text</type>
            </property>
            <property name="secSmiley TongueositionDescription">
               <title>Position Description</title>
               <type>d:text</type>
            </property>
         </properties>            
         <associations>
            <child-association name="sec:suborindatesPositions">
               <source>
                  <mandatory>true</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>secSmiley Tongueosition</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
               <propagateTimestamps>true</propagateTimestamps>
            </child-association>
         </associations>
      </type>
      
      <type name="secSmiley Surprisedrganization">
         <title>Organization</title>
         <parent>cm:content</parent>
         <properties>
            <property name="secSmiley SurprisedrganizationId">
               <title>Organization ID</title>
               <type>d:int</type>
            </property>
            <property name="secSmiley SurprisedrganizationName">
               <title>Organization Name</title>
               <type>d:text</type>
            </property>
            <property name="sec:rootPositionName">
               <title>Organization's Root Position Name</title>
               <type>d:text</type>
            </property>
            <property name="sec:rootPositionDesc">
               <title>Organization's Root Position Description</title>
               <type>d:text</type>
            </property>
            <property name="sec:rootPosition">
               <title>Root Position</title>
               <type>d:noderef</type>
            </property>
         </properties>
      </type>   
   </types>
</model>
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.