-
1. Re: customize UserPortlet
theute Feb 12, 2007 7:27 AM (in response to den74)You should be able to do it step by step.
-> Change the JSPs (the stored data will not change)
-> Create your own UserModule and RoleModule implementing the respective interfaces (now you should have what you want)
The bottom line is to always call the userModule and roleModule so you can plug/unplug different storage and the system will continue to work fine. -
2. Re: customize UserPortlet
den74 Feb 12, 2007 8:39 AM (in response to den74)Thanks for quick answer, but now i have another question: how can i store new data not present in the current User/Role database tables?
I can't change the database schema the only thing i could do is to store my data in private table and referst them to the JBoss table, but how can can i access the id of the object created by the default behaviour? -
3. Re: customize UserPortlet
den74 Feb 13, 2007 4:15 AM (in response to den74)Mybe i have answered in part to my question:
i have to create a database table for my personal data, implement my versione of UserModule call the super methods to continue to do ht e normal actions and than implement code to store my personal data.
I saw the class doing the usual operation is UserModuleImpl, so maybe i have to extend that class (??) but where I can find it and above all where i can configure portal to use my class and not the default one?
thanks for answers -
4. Re: customize UserPortlet
den74 Feb 16, 2007 5:22 AM (in response to den74)well, i customized some parts about the user creation but it seams to not be possible to customize the profile user data.
I can customize the jsp but i can't customize the storing of data, i mean to add the storing of new personal data, because they are managed int the PortletUser classand i think it is not possible to override.
What i would like to do is something like a class extending UserPortlet
and implementing method
storeProfile(...) {
super.storeProfile(...);
...
[my code]
...
}
and configure portal to call this one instead of UserPortlet class.
Any suggestions?