AnsweredAssumed Answered

Customize User Profile on 4.2e

Question asked by riccardog on Nov 26, 2013
Latest reply on Jan 29, 2014 by riccardog
Hi everybody,

As many other people, I need to add some custom data to cm:person.

After some browsing, I've found that jpotts' post  http://ecmarchitect.com/archives/2012/02/27/1555 but it is for Alfresco 3.4, while I am using <strong>Alfresco 4.2e Community</strong>

I 've done some adaptations,  but the only goal I got is: to see my brand new text fields in the form. Custom data is not written.

In effects, I am not sure that my bean that overrides SlingshotUserFactory is called. Indeed I am almost sure it is not.

I explain what I've done, hoping someone will show me my errors…

By the way, I'm doing it into a specific AMP.

I don't mention the parts about the aspect and the client side, because they are working.


First of all, I've declared my bean into a custom share config, called kl-custom_users-share-config.xml

<alfresco-config>

   <config evaluator="string-compare" condition="WebFramework">
      <web-framework>
         <defaults>
            <user-factory>webframework.factory.user.kitelabs</user-factory>
         </defaults>
      </web-framework>
   </config>
</alfresco-config>


then loaded it by a -context:

<bean id="it.kitelabs.alf.kl-custom_users-config" class="org.springframework.extensions.config.ConfigBootstrap"
      init-method="register">
      <property name="configService" ref="web.config" />
      <property name="configs">
         <list>
               <!– KiteLabs custom config –>
            <value>classpath:alfresco/kl-custom_users-share-config.xml</value>
            
         </list>
      </property>
   </bean>

   
   <bean id="webframework.factory.user.kitelabs" class="it.kitelabs.alf.custom_users.KLUserFactory" parent="webframework.factory.base" />


I think It doesn't work because  my java code should write some debug lines in catalina.out and in my own textile: I never seen that text.
Where could be my mistake? maybe user-factory is not the correct key? or maybe  submitting data no more uses the java implementation? Or there is a typo I can't see?

Thank you,
RIc

Outcomes