Thanks for the feedback so far. The configuration data structure now looks like this:

- ...
        - config
                - defaultRoles
                - defaultGroups
                - registrationStrategy
                - passwordRetrievalStrategy
                - realmName
                - userProfileClass
                - contexts
                        - context1
                                - contextRoles
                                - registrationStrategy
                        - context2
                                - passwordRetrievalStrategy
                                - realmname
                        - ...

I've started extending PUR, trying not to change any existing classes at all and only adding as few classes as possible. At this point, I'm only extending info.magnolia.module.publicuserregistration.frontend.Register with a "RegisterInContext" subclass. This class looks for a context info in the request and then uses a context specific config object to do the work - all the methods like userRegistrar.validateForCreation() do not need to be modified.

I'm now struggling a bit with instantiating the config object from the config node. Of course I did not want to do this by hand so I tried to use Content2BeanUtil. This worked fine for many things, but I'm having troubles having it create the objects like the registrationStrategy etc. I'm sure that I need to use some Transformer... but I don't see what transformer and how to use it - o.k., it's been a looong day, so maybe tomorrow morning everything will look a bit easier. But if someone of you is a Content2Bean expert, I would appreciate some pointers to speed up things here a bit. Thanks!

will

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to