<?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 Properties ignored in my module in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/properties-ignored-in-my-module/m-p/283942#M237072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone, first I apologize for my bad english, I will try to explain my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently installed Alfresco 5.0d on my computer, I made a synchronization with a LDAP by configuring the alfresco-global-properties. I can now log in with LDAP users and datas are synchronized it's ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'm trying to synchronize user's photos from the LDAP in Alfresco and to do that I choose to develop a little module in java which connect to the LDAP, download the photo and inject it into alfresco using the REST API. My program works perfectly so I packaged it in amp for the integration in Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I take example on the trashcan cleaner module available on github here &lt;/SPAN&gt;&lt;A href="https://github.com/atolcd/alfresco-trashcan-cleaner" rel="nofollow noopener noreferrer"&gt;https://github.com/atolcd/alfresco-trashcan-cleaner&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The organization of my module is exactly the same as the trashcan cleaner. When I deploy Alfresco the module is well started and I can synchronized photos from the LDAP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there is a problem, I try to externalize the configuration of my module by doing the same thing as the trashcan cleaner : I define the properties of my bean like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp; &amp;lt;property name="userId"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;${avatarSender.userId}&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="photoAttribute"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;${avatarSender.photoAttribute}&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;/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;These properties are in the Java class and setters are well defined. However, when I write for example avatarSender.userId=XXXX the module ignore it and take the default value I specified in the Java class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An other strange fact, I wanted my module to be automatic like the trashcan cleaner, so I make a scheduled job and I defined the bean like this : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;bean id="avatarSenderTrigger" class="org.alfresco.util.CronTriggerBean"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobDetail"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="avatarSenderJobDetail" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="scheduler"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="schedulerFactory" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– trigger at 4am each day –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="cronExpression"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;${avatarSender.cron}&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&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;/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;BR /&gt;&lt;SPAN&gt;This time, when I write avatarSender.cron=XXX in my alfresco-global-properties, the job is executed at the&amp;nbsp; good moment, it does not ignore this parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All beans in the module are defined in the same context, there are no errors when deploying so I don't understand why all my external parameters are ignored except the avatar.cron&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 05:50:32 GMT</pubDate>
    <dc:creator>saxophtrion</dc:creator>
    <dc:date>2015-06-10T05:50:32Z</dc:date>
    <item>
      <title>Properties ignored in my module</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/properties-ignored-in-my-module/m-p/283942#M237072</link>
      <description>Hello everyone, first I apologize for my bad english, I will try to explain my problem.I recently installed Alfresco 5.0d on my computer, I made a synchronization with a LDAP by configuring the alfresco-global-properties. I can now log in with LDAP users and datas are synchronized it's ok.Now I'm tr</description>
      <pubDate>Wed, 10 Jun 2015 05:50:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/properties-ignored-in-my-module/m-p/283942#M237072</guid>
      <dc:creator>saxophtrion</dc:creator>
      <dc:date>2015-06-10T05:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Properties ignored in my module</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/properties-ignored-in-my-module/m-p/283943#M237073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where are you setting the properties? in the alfresco-global.properties of your module ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:13:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/properties-ignored-in-my-module/m-p/283943#M237073</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2015-06-17T10:13:22Z</dc:date>
    </item>
  </channel>
</rss>

