Hi again, I dont mean to sound as though I deserve anyone's attention but I can't find any resource on this. I've searched all the forums I know of and the net but still can't find any meaningful info on the subject. I've also looked at the servlet and jsp specs which don't go into much detail. The J2EE developers guide seems to be heavily slanted to developing with specific tools.
If someone can offer any suggestion as to how I use the declarative security principle, roles and rolegroups to identify users and their groups (as outlined below) I would be most grateful. Cheers Joe ;-) jfc100 wrote: > Hi, > > I would like to implement a user base (using J2EE declarative > security) with the following relationship hierarchy : > > Users: > user = 100, usergroup = 11; > > UserGroups: > usergroup = 10, groupname=agent, parentgroup = 5; > usergroup = 11, groupname=privatesupplier, parentgroup = 5; > usergroup = 5, groupname=supplier, parentgroup = 1; > usergroup = 1, groupname=user, parentgroup=0; > > This is so that if I say userInRole(supplier) I know I'm dealing with > all users in this group as well as all users in all child groups. Or > in other words I need to know whether a user is a descendent of a > particular ancestor. > > How could I implement this using principals, roles and rolegroups? I > mean how do the three relate? > > Thanks > Joe > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>