<?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: support for adding List&amp;lt;Object&amp;gt; to cmis:Document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257220#M210350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Along the idea you mentioned with storing a serialized text String representation of the object (JSON or XML for that matter), do you know if one could define the property type (instead of d:text, let's say) as a binary field where one could store a serialized object instance (a class that implements java.io.Serializable).&lt;BR /&gt;&lt;BR /&gt;I see something called "content" as a type: &lt;A href="http://wiki.alfresco.com/wiki/Type_Mech" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Type_Mech&lt;/A&gt; … erty_Types or am I misreading this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It is the data type of the main property of cm:content that holds its binary data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you define your own type that has an additional d:content data type property. I haven't tried, but it seems it can handle an arbitrary binary stream according to &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fmetadata-model-props.html" rel="nofollow noopener noreferrer"&gt;the official document&lt;/A&gt;&lt;SPAN&gt; as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Btw, in "Alfresco Developer Guide" by Jeff, it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Even though these data types are defined out of the box, if you wanted to change the Alfresco data type "text" so that it maps to your own custom class rather than java.lang.String, you could.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So I hope Jeff would chime in this discussion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 02:33:38 GMT</pubDate>
    <dc:creator>t_sato</dc:creator>
    <dc:date>2012-09-12T02:33:38Z</dc:date>
    <item>
      <title>support for adding List&lt;Object&gt; to cmis:Document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257217#M210347</link>
      <description>Hello,After originally posting to the Apache Chemistry dev list, it was suggested that I post this question here since it is beginning to get Alfresco-specific.We have a need to expand a content model so that the Document model can include a List&amp;lt;&amp;gt; where the List contains a custom type called</description>
      <pubDate>Wed, 05 Sep 2012 16:17:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257217#M210347</guid>
      <dc:creator>mcs130</dc:creator>
      <dc:date>2012-09-05T16:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: support for adding List&lt;Object&gt; to cmis:Document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257218#M210348</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;I'm afraid no easy solution available, but I think you have two ways. I assume the problem here is not specific to CMIS, but to customizing data model on Alfresco in general. Please refer to &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series" rel="nofollow noopener noreferrer"&gt;Jeff's tutorials&lt;/A&gt;&lt;SPAN&gt; if you haven't read yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. define your own custom data type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. design UserNote as an embedded object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Define your own custom data type&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought it is easy like the following, but which was not. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;property name="acme:userNotes"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;acme:userNote&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As described in &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?t=8860" rel="nofollow noopener noreferrer"&gt;defining your own basic data types&lt;/A&gt;&lt;SPAN&gt;, it is beyond simple XML editing and writing a POJO bean as its serializer/deserializer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 4.0, it might have been improved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Design UserNote as an embedded object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the UserNote doesn't need to be treated as a document, you can define UserNote as d:text, like in JSON as an embedded object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/alfresco-share-datatable-property-type/" rel="nofollow noopener noreferrer"&gt;This Add-On&lt;/A&gt;&lt;SPAN&gt; is an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you access to Alfresco via CMIS in Java, encoding/decoding JSON should be no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;(confirmed that this is supported by CMIS)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me where and how it is defined? I wasn't able to find in the specification v1.0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 05:38:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257218#M210348</guid>
      <dc:creator>t_sato</dc:creator>
      <dc:date>2012-09-07T05:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: support for adding List&lt;Object&gt; to cmis:Document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257219#M210349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; Yes I did read that document by Jeff and although a very, very helpful document for much of CMIS, I was not able to ascertain just how one could do this with a custom class definition like we are proposing.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your idea of using "text" property to hold a serialized JSON object as a String is interesting.&amp;nbsp; We may be constrained by the text size limit for such a property on "another" ECM they are looking at.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for CMIS APIs supporting this, I did not get&amp;nbsp; that from the spec.&amp;nbsp; I believe this question was posed on the Chemistry (CMIS) mailing list and there was a response that indicated passing a Document containing a custom property like this or a custom Content model in general should be supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Along the idea you mentioned with storing a &lt;/SPAN&gt;&lt;EM&gt;serialized &lt;/EM&gt;&lt;SPAN&gt;text String representation of the object (JSON or XML for that matter), do you know if one could define the property type (instead of d:text, let's say) as a &lt;/SPAN&gt;&lt;EM&gt;binary field&lt;/EM&gt;&lt;SPAN&gt; where one could store a serialized object instance (a class that&amp;nbsp;&amp;nbsp; implements java.io.Serializable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see something called "content" as a type: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Type_Mechanism#Property_Types" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Type_Mechanism#Property_Types&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; or am I misreading this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again for your input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 16:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257219#M210349</guid>
      <dc:creator>mcs130</dc:creator>
      <dc:date>2012-09-11T16:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: support for adding List&lt;Object&gt; to cmis:Document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257220#M210350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Along the idea you mentioned with storing a serialized text String representation of the object (JSON or XML for that matter), do you know if one could define the property type (instead of d:text, let's say) as a binary field where one could store a serialized object instance (a class that implements java.io.Serializable).&lt;BR /&gt;&lt;BR /&gt;I see something called "content" as a type: &lt;A href="http://wiki.alfresco.com/wiki/Type_Mech" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Type_Mech&lt;/A&gt; … erty_Types or am I misreading this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It is the data type of the main property of cm:content that holds its binary data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you define your own type that has an additional d:content data type property. I haven't tried, but it seems it can handle an arbitrary binary stream according to &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fmetadata-model-props.html" rel="nofollow noopener noreferrer"&gt;the official document&lt;/A&gt;&lt;SPAN&gt; as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Btw, in "Alfresco Developer Guide" by Jeff, it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Even though these data types are defined out of the box, if you wanted to change the Alfresco data type "text" so that it maps to your own custom class rather than java.lang.String, you could.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So I hope Jeff would chime in this discussion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 02:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/support-for-adding-list-lt-object-gt-to-cmis-document/m-p/257220#M210350</guid>
      <dc:creator>t_sato</dc:creator>
      <dc:date>2012-09-12T02:33:38Z</dc:date>
    </item>
  </channel>
</rss>

