<?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 jjavaBacked Script : manipulation de properties [résolu] in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jjavabacked-script-manipulation-de-properties-r%C3%A9solu/m-p/206306#M159436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bonjour&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;je me pose une question de bonnes pratiques :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suite à un Query Lucene, j'obtiens un ResultSetRow que j'explore, d'abord en lisant toutes ses propriétés (mon objectif est d'en modifier certaines).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J'obtiens le même résultat en passant par :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!break&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Map properties=getServiceRegistry().getNodeService()&lt;BR /&gt;.getProperties(row.getNodeRef());&lt;SPAN class="line-numbers-rows"&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; et en explorant la map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;FileInfo fileInfo = getServiceRegistry().getFileFolderService().getFileInfo(nodeRef);&lt;BR /&gt;for (Object entry2 : fileInfo.getProperties().entrySet())&lt;BR /&gt;{&lt;BR /&gt;…&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;BR /&gt;&lt;SPAN&gt;3) &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Map&amp;lt;String,Serializable&amp;gt; temp = row.getValues();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; et en explorant la map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Du point de vue des bonnes pratiques (Alfresco 4.2.c), quelle solution est elle à préconiser ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Merci&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frédéric Marin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 15:16:06 GMT</pubDate>
    <dc:creator>fmarin</dc:creator>
    <dc:date>2013-04-29T15:16:06Z</dc:date>
    <item>
      <title>jjavaBacked Script : manipulation de properties [résolu]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jjavabacked-script-manipulation-de-properties-r%C3%A9solu/m-p/206306#M159436</link>
      <description>Bonjourje me pose une question de bonnes pratiques &lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;uite à un Query Lucene, j'obtiens un ResultSetRow que j'explore, d'abord en lisant toutes ses propriétés (mon objectif est d'en modifier certaines).J'obtiens le même résultat en passant par :&amp;lt;!break&amp;gt;1) Map properties=getServiceRegistry().get</description>
      <pubDate>Mon, 29 Apr 2013 15:16:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jjavabacked-script-manipulation-de-properties-r%C3%A9solu/m-p/206306#M159436</guid>
      <dc:creator>fmarin</dc:creator>
      <dc:date>2013-04-29T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: jjavaBacked Script : manipulation de properties [résolu]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jjavabacked-script-manipulation-de-properties-r%C3%A9solu/m-p/206307#M159437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;il semble finalement que l'appel à NodeService soit la meilleure solution&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 19:56:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jjavabacked-script-manipulation-de-properties-r%C3%A9solu/m-p/206307#M159437</guid>
      <dc:creator>fmarin</dc:creator>
      <dc:date>2013-05-07T19:56:51Z</dc:date>
    </item>
  </channel>
</rss>

