Hi David This api could solve our group and role relationship issue. My understanding according your solution is "SECURITY_GROUP_ROLE " is used for group and role relationship. Correct me if I am wrong? I found jetspeed2 using list of tables. Do you have any document regarding what these table are for (I mean tables description). It will be very helpfull to us if we know these thing so that we can provide our own GUI for security management. -ve side: If new version of jetspeed comes along with different structure of these tables, our gui may not work. Your Comment/Suggestion Please. Regards Rakesh
David Sean Taylor <[EMAIL PROTECTED]> wrote: Shah Amit wrote: > I have the exact same problem !!! I think with J2, roles and groups are > just 2 interchangeable ways of catagorizing users. I tried to find a > link between those, but I couldn't. Finally I ended up designing my > system accordingly atleast for now. > > I just check for roles in my system, and treat roles as "actual > permissions". > Im not sure if I understand the question. So please be patient with me if Im totally off target here. It won't be the first time! Do you want to "link" or associate, roles with groups. Is that correct? In the database schema, there is the SECURITY_GROUP_ROLE table: type="INTEGER"/> type="INTEGER"/> In the API, there is: o.a.j.security.RoleManager: Collection getRolesInGroup(String groupFullPathName) throws SecurityException; void addRoleToGroup(String roleFullPathName, String groupFullPathName) throws SecurityException; void removeRoleFromGroup(String roleFullPathName, String groupFullPathName) throws SecurityException; boolean isGroupInRole(String groupFullPathName, String roleFullPathName) throws SecurityException; .... o.a.j.security.GroupManager: Collection getGroupsInRole(String roleFullPathName) throws SecurityException; hth, -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
