[Yanel-dev] Overwriting the identityManager

Josias Thöny josias.thoeny at wyona.com
Thu Oct 25 15:50:13 CEST 2007


Michael Wechner wrote:
> Hi
> 
> It would be nice if one would be able to overwrite the IdentityManager. 
> At the moment one can only overwrite the YarepImplementation, but in the 
> case of LDAP this is not sufficient.
> 
> Hence I would like to suggest the following enhancement for the 
> realm.config
> 
> <ac-identities 
> class="foo.bar.wyona.security.impl.IdentityManagerFactoryImpl">
>  <foo-bar:ldap-config 
> xmlns:naz="http://www.bar.foo/wyona/1.0">...</foo-bar:ldap-config>
>  ...
> </ac-identities>
> 
> whereas we would need to enhance the Realm class 
> (src/core/java/org/wyona/yanel/core/map/Realm.java) slightly when 
> loading the FactoryImpl
> 
> IdentityManagerFactory imFactory = (IdentityManagerFactory) 
> yanel.getBeanFactory().getBean("IdentityManagerFactory");
> 
> which is currently the default, but should be overwritten (resp. 
> refactored) when a class attribute is being set within the realm config.
> 
> Also of course the custom config needs to be passed to this Custom 
> Factory (for instance as DOM).
> 
> <yanel:ac-identities-custom-config>
> ....
> </yanel:ac-identities-custom-config>
> 
> WDYT?

Sounds good...
Although I'm not sure if we really need a factory. Maybe it would be 
sufficient to just specify the actual identity manager class.

josias


> 
> Cheers
> 
> Michi
> 



More information about the Yanel-development mailing list