portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: Jetspeed2 Security
Date Fri, 10 Jun 2005 17:50:08 GMT
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:

     <table name="SECURITY_GROUP_ROLE">
         <column name="GROUP_ID" primaryKey="true" required="true" 
         <column name="ROLE_ID" primaryKey="true" required="true" 
         <foreign-key foreignTable="SECURITY_PRINCIPAL" onDelete="cascade">
             <reference foreign="PRINCIPAL_ID" local="GROUP_ID"/>
         <foreign-key foreignTable="SECURITY_PRINCIPAL" onDelete="cascade">
             <reference foreign="PRINCIPAL_ID" local="ROLE_ID"/>

In the API, there is:


     Collection getRolesInGroup(String groupFullPathName) throws 
     void addRoleToGroup(String roleFullPathName, String 
groupFullPathName) throws SecurityException;
     void removeRoleFromGroup(String roleFullPathName, String 
groupFullPathName) throws SecurityException;
     boolean isGroupInRole(String groupFullPathName, String 
roleFullPathName) throws SecurityException;


     Collection getGroupsInRole(String roleFullPathName) throws 


David Sean Taylor
Bluesunrise Software
[office] +01 707 773-4646
[mobile] +01 707 529 9194

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message