<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set up multiple custom models? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166884#M120445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ally,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If several models share a number of properties, you might want to consider creating a base model and have other models extend its types and/or aspects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject defines the cm:name property. Since cm:content and cm:folder both extend from cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject, they both have a cm:name property too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you define a c:basedoc type with c:url property, you can have a:doc and b:doc extend from it. That way, you can display urls of a:doc objects and b:doc objects with just c:url.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 09:23:42 GMT</pubDate>
    <dc:creator>frederick</dc:creator>
    <dc:date>2008-05-15T09:23:42Z</dc:date>
    <item>
      <title>How to set up multiple custom models?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166883#M120444</link>
      <description>Hi there,I got a question about how to set up multiple custom models, possibly with same properties.When our Alfresco grows, I need to create more than one custom content models. Some models share several properties, but mostly different. For example, Model A has "URL" property, Model B has "URL" pr</description>
      <pubDate>Wed, 14 May 2008 16:32:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166883#M120444</guid>
      <dc:creator>llin</dc:creator>
      <dc:date>2008-05-14T16:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up multiple custom models?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166884#M120445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ally,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If several models share a number of properties, you might want to consider creating a base model and have other models extend its types and/or aspects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject defines the cm:name property. Since cm:content and cm:folder both extend from cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject, they both have a cm:name property too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you define a c:basedoc type with c:url property, you can have a:doc and b:doc extend from it. That way, you can display urls of a:doc objects and b:doc objects with just c:url.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 09:23:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166884#M120445</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2008-05-15T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up multiple custom models?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166885#M120446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. That will be one way I will go, if nothing is better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what if, the same properties among multiple models are somewhat different. Does it mean I have to create more than one base model? The issue with inheritance in OOP hits me. Could I create several aspects and use them more flexibly whenever I need them? I am going to give it a shot, using "contentModel.xml" as an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if I didn't state clearly, just the concepts of OOP and AOP are messing up in my mind now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ally&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 16:54:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166885#M120446</guid>
      <dc:creator>llin</dc:creator>
      <dc:date>2008-05-15T16:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up multiple custom models?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166886#M120447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could I create several aspects and use them more flexibly whenever I need them?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes, that's exactly what they're for. My example was only derived from cm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject. If you need the c:url property on all different kinds of objects (i.e. cross-cutting), you could put c:url in an aspect and use it anywhere you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-up-multiple-custom-models/m-p/166886#M120447</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2008-05-16T07:35:19Z</dc:date>
    </item>
  </channel>
</rss>

