MyEclipse: Questions about LDAP-DB Security Scaffold Customization
nhernandez - Apr 03, 2012 - 12:32 AM
Post subject: Questions about LDAP-DB Security Scaffold Customization
My team is working on a Scaffold Customization project, and we had been required to create a -so called- Hybrid Security Strategy, by using LDAP Authentication and DB Authorization (customer requires to mantain user-roles, and option-roles configuration from DB tables).
LDAP part has been easy to implement, by using the normal LDAP authentication strategy, and Roles extraction was just matter of substituting the AuthoritiesPopulator inside the "userDetailsService" bean, , with another implementation of LdapAuthoritiesPopulator interface, that uses DataSource and queries to extract the roles.
But the challenging part is to Scaffold the menu options page by retrieving them from the DB configuration Tables. This idea implies that during scaffolding time, it is supposed to retrieve the options list, its roles, and create the "menu.jsp" with all of it, by using "crudDataTypeMenuSegment.jet".
So, question number 1 is:
Is there any way to add this behavior to the scaffolding process? Maybe adding a subroutine to an existing java piece or modifying jet templates?
Question number 2 is:
For security at service's methods level, we're planning to extract the comments from the tables in the database (Oracle 10g), where we will put the list of roles that will have access to perform CRUD operations over the specific scaffolded entity.
Is it possible to retrieve the comments from database? which attribute in the "model" object holds this value (at services generation time)?
Thanks for your help!
nhernandez - Apr 03, 2012 - 10:17 PM
Guys, do you have any idea regarding this two questions? of hint/docs about this topic?
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits