<?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: Problema con property datetime (Decimal properties!) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18366#M8365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Da quanto riesco ad intuire non viene riconosciuto il tipo del valore della nuova property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Non sono sicuro che il codice che sto per mostrarti è compatibile con l'ultima versione di Apache Chemistry, e da parecchio che non ne scrivo una riga, però da quanto mi ricordo dovresti creare la property nel seguente modo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;CmisPropertiesType properties = new CmisPropertiesType();&lt;BR /&gt;ObjectFactory objectFactory = new ObjectFactory();&lt;BR /&gt;CmisPropertyDateTime dateTimeProp = objectFactory.createCmisPropertyDateTime();&lt;BR /&gt;dateTimeProp.setPropertyDefinitionId("dp:data_protocollo");&lt;BR /&gt;dateTimeProp.getValue().add(new Date());&lt;BR /&gt;properties.getProperty().add(dateTimeProp);&lt;BR /&gt;folder.createDocument(properties, conStream, versioningState,null,null,null,operationContext);&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Spero possa aiutarti&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 17:23:45 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2011-02-17T17:23:45Z</dc:date>
    <item>
      <title>Problema con property datetime (Decimal properties!)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18365#M8364</link>
      <description>Salve a tutti,ho un problema e sono fermo su questo punto da un paio di giorni…..Sono alle prime armi con Alfresco e sto realizzando un collegamento tramite CMIS ad Alfresco 3.4.Ho creato un custom-type con alcuni metadati, in particolare un paio sono di type datetime:&amp;lt;property name="dp:data_prot</description>
      <pubDate>Thu, 17 Feb 2011 17:00:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18365#M8364</guid>
      <dc:creator>samfisher</dc:creator>
      <dc:date>2011-02-17T17:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problema con property datetime (Decimal properties!)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18366#M8365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Da quanto riesco ad intuire non viene riconosciuto il tipo del valore della nuova property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Non sono sicuro che il codice che sto per mostrarti è compatibile con l'ultima versione di Apache Chemistry, e da parecchio che non ne scrivo una riga, però da quanto mi ricordo dovresti creare la property nel seguente modo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;CmisPropertiesType properties = new CmisPropertiesType();&lt;BR /&gt;ObjectFactory objectFactory = new ObjectFactory();&lt;BR /&gt;CmisPropertyDateTime dateTimeProp = objectFactory.createCmisPropertyDateTime();&lt;BR /&gt;dateTimeProp.setPropertyDefinitionId("dp:data_protocollo");&lt;BR /&gt;dateTimeProp.getValue().add(new Date());&lt;BR /&gt;properties.getProperty().add(dateTimeProp);&lt;BR /&gt;folder.createDocument(properties, conStream, versioningState,null,null,null,operationContext);&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Spero possa aiutarti&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 17:23:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18366#M8365</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-02-17T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problema con property datetime (Decimal properties!)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18367#M8366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;purtroppo ancora non sono riuscito a venirne a capo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;CmisPropertiesType properties = new CmisPropertiesType();&lt;BR /&gt;…….&lt;BR /&gt;folder.createDocument(properties, conStream, versioningState,null,null,null,operationContext);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Il createDocument che ho io vuole Map&amp;lt;String,?&amp;gt; e non un CmisPropertiesType…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 23:52:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problema-con-property-datetime-decimal-properties/m-p/18367#M8366</guid>
      <dc:creator>samfisher</dc:creator>
      <dc:date>2011-02-17T23:52:45Z</dc:date>
    </item>
  </channel>
</rss>

