<?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 Variabile esterna in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76950#M50832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao a tutti,&lt;/P&gt;&lt;P&gt;sto scrivendo un paio di action in java per estrarre metadati da un file pdf,&lt;/P&gt;&lt;P&gt;avrei la necessità di assegnare ad una variabile java un valore che andrei a posizionare come parametro nel file alfresco-global.properties.&lt;/P&gt;&lt;P&gt;Per assegnare una variabile ad un xxx-context.xml ho usato questo&amp;nbsp; "&amp;lt;prop key="redeploy"&amp;gt;${redeploy.workflow.new}&amp;lt;/prop&amp;gt;"&lt;/P&gt;&lt;P&gt;e poi ho messo nel file alfresco-global.properties la voce "redeploy.workflow.new=true".&lt;/P&gt;&lt;P&gt;Come posso fare la stessa cosa per una classe java?&lt;/P&gt;&lt;P&gt;Grazie a tutti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 16:40:04 GMT</pubDate>
    <dc:creator>bishop_8870</dc:creator>
    <dc:date>2016-10-12T16:40:04Z</dc:date>
    <item>
      <title>Variabile esterna</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76950#M50832</link>
      <description>Ciao a tutti,sto scrivendo un paio di action in java per estrarre metadati da un file pdf,avrei la necessità di assegnare ad una variabile java un valore che andrei a posizionare come parametro nel file alfresco-global.properties.Per assegnare una variabile ad un xxx-context.xml ho usato questo&amp;nbsp; "&amp;amp;l</description>
      <pubDate>Wed, 12 Oct 2016 16:40:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76950#M50832</guid>
      <dc:creator>bishop_8870</dc:creator>
      <dc:date>2016-10-12T16:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variabile esterna</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76951#M50833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basta che implementi un metodo setter all'interno della tua classe Java e poi la dichiari come Spring bean nel context andando ad impostare come property il tuo metodo set che avrà come argomento una stringa, qualcosa simile al seguente snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;bean&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;id&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;=&lt;/SPAN&gt;"yourSpringBean"&lt;SPAN class="s3"&gt; &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;class&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;=&lt;/SPAN&gt;"com.mycompany.myproject.component"&lt;SPAN class="s3"&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="&lt;STRONG&gt;redeployWorkflowNew&lt;/STRONG&gt;" value="&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;${redeploy.workflow.new}&lt;/SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;All'interno della tua classe dovrai avere un metodo setter pubblico come il seguente:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;public void set&lt;STRONG&gt;RedeployWorkflowNew&lt;/STRONG&gt;(String redeployWorkflowNew){&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.redeployWorkflowNew = redeployWorkflowNew;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:16:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76951#M50833</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2016-10-13T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variabile esterna</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76952#M50834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grazie dell'aiuto, mi ero fossilizzato sul get invece del set, stavo guardando all'incontrario. grazie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:47:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variabile-esterna/m-p/76952#M50834</guid>
      <dc:creator>bishop_8870</dc:creator>
      <dc:date>2016-10-13T17:47:59Z</dc:date>
    </item>
  </channel>
</rss>

