<?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: Content type with multiple d:content properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188743#M141873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just having a look at the 3.3.1 E code base and it appears that no changes have been made to stop this single value constraint for d:content properties.&amp;nbsp; I can override this so this isn't an issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But doesn't a child association inhibit your ability to full text search for the parent item based on the child content item?&amp;nbsp; Lucene doesn't really support queries for a parent based on the contents of a child without doing a two query inspection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 18:49:50 GMT</pubDate>
    <dc:creator>jamen</dc:creator>
    <dc:date>2011-02-08T18:49:50Z</dc:date>
    <item>
      <title>Content type with multiple d:content properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188739#M141869</link>
      <description>Hi,I'm trying to define a content type that would allow multiple items of d:content to be attached.I created a custom type based on cm:content with the following definition&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type name="my:content"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parent&amp;gt;cm:cmobject&amp;lt;/parent&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property nam</description>
      <pubDate>Mon, 02 Mar 2009 11:56:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188739#M141869</guid>
      <dc:creator>aspa</dc:creator>
      <dc:date>2009-03-02T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Content type with multiple d:content properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188740#M141870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you post the exception log, please.&amp;nbsp; I don't remember adding that restriction in - it could be a regression or side-effect of some other change.&amp;nbsp; But let's look at the failure and I can advise further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 13:16:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188740#M141870</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2009-03-02T13:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Content type with multiple d:content properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188741#M141871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what org.alfresco.repo.dictionary.TestModel says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;validate-model:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] Working directory ignored when same JVM is used.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] Testing dictionary model definitions…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; alfresco/model/dictionaryModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; alfresco/model/systemModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; org/alfresco/repo/security/authentication/userModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; alfresco/model/contentModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; alfresco/model/wcmModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; alfresco/model/applicationModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; alfresco/model/bpmModel.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java]&amp;nbsp; config/alfresco/module/&lt;A href="http://foo.bar.intranet.cm/foobarIntranetModel.xml" rel="nofollow noopener noreferrer"&gt;foo.bar.intranet.cm/foobarIntranetModel.xml&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] Found an invalid model…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] Could not import bootstrap model config/alfresco/module/&lt;A href="http://foo.bar.intranet.cm/foobarIntranetModel.xml" rel="nofollow noopener noreferrer"&gt;foo.bar.intranet.cm/foobarIntranetModel.xml&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] Failed to compile model my::foobarmodel&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [java] d_dictionary.property.err.single_valued_content&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.dictionary.M2PropertyDefinition seems to emit a DictionaryException with the above key if a multivalued property of type d:content is defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After installing the model, Alfresco also failed to start and issued the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org_alfresco_module_foobarIntranet_dictionaryBootstrap' defined in file [D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\foo.bar.intranet.cm\module-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/module/&lt;A href="http://foo.bar.intranet.cm/foobarIntranetModel.xml" rel="nofollow noopener noreferrer"&gt;foo.bar.intranet.cm/foobarIntranetModel.xml&lt;/A&gt;&lt;BR /&gt;Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/module/&lt;A href="http://foo.bar.intranet.cm/foobarIntranetModel.xml" rel="nofollow noopener noreferrer"&gt;foo.bar.intranet.cm/foobarIntranetModel.xml&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.dictionary.DictionaryBootstrap.initDictionary(DictionaryBootstrap.java:147)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:108)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBean&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 13:41:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188741#M141871</guid>
      <dc:creator>aspa</dc:creator>
      <dc:date>2009-03-02T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Content type with multiple d:content properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188742#M141872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That restriction should no longer be necessary (since 3.x) - I'll look at changing it.&amp;nbsp; You could facilitate by grabbing the source and commenting out the offending code in &lt;/SPAN&gt;&lt;STRONG&gt;projects/repository/source/java/org/alfresco/repo/dictionary/M2PropertyDefinition&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ensure content properties are not multi-valued&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (propertyTypeName.equals(DataTypeDefinition.CONTENT) &amp;amp;&amp;amp; isMultiValued())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new DictionaryException("d_dictionary.property.err.single_valued_content");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Let us know if any nasty issues arise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most implementations (that I am aware of) use an aspect with one-to-many child associations to do the containment.&amp;nbsp; This works well and allows more metadata to be associated with the stored content snippets i.e. each subdocument is treated as first class content.&amp;nbsp; However, make the change and let us know if any nasties appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 15:45:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188742#M141872</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2009-03-02T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Content type with multiple d:content properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188743#M141873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just having a look at the 3.3.1 E code base and it appears that no changes have been made to stop this single value constraint for d:content properties.&amp;nbsp; I can override this so this isn't an issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But doesn't a child association inhibit your ability to full text search for the parent item based on the child content item?&amp;nbsp; Lucene doesn't really support queries for a parent based on the contents of a child without doing a two query inspection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 18:49:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-type-with-multiple-d-content-properties/m-p/188743#M141873</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2011-02-08T18:49:50Z</dc:date>
    </item>
  </channel>
</rss>

