Maybe try this:

public static Vector getUserRoleNames(RunData runData) throws
JetspeedSecurityException{
            Iterator roles =
JetspeedSecurity.getRoles(runData.getUser().getUserName());
            Vector tmpRole = new Vector();
            while(roles.hasNext()){
                tmpRole.addElement(roles.next());
            }            
            rolesList = tmpRole;
            return tmpRole;
        }
        
        public static Vector getUseGroupNames(RunData runData) throws
JetspeedSecurityException{
            Iterator groups =
JetspeedSecurity.getGroups(runData.getUser().getUserName());
            Vector tmpGroup = new Vector();
            while(groups.hasNext()){
                tmpGroup.addElement(groups.next());
            }            
            groupList = tmpGroup;
            return tmpGroup;
        }

-----Original Message-----
From: Christian Heine [mailto:[EMAIL PROTECTED]] 
Sent: 02 December 2002 12:35
To: [EMAIL PROTECTED]
Subject: How can i request Role/Group Properties by runtime?


Hi all,

i'm try to implement a portlet with role/group controlled content. My aim is
to check the database ressources with the user role or group properties and
seperate on that way what is shown and which data must be hide.

I got the iformation that this could be made by the AccessControllList, but
it looks like verry difficult and inefficient manner. Is there a better way
to get these information about the user?

I know that these datas are placed in the hypersonicSQL database, but i will
not use these because later the access should be made by LDAP.

Thanks for any help in advance,
Christian

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to