Thanks, works fine!!
Achim -----Urspr�ngliche Nachricht----- Von: Stuart Belden [mailto:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 2. Januar 2003 14:41 An: [EMAIL PROTECTED] Betreff: Re: how to get the roles of a specific user?? this is a simple snippit that will get a list of all roles and the permissions for each role. Iterator roles = JetspeedSecurity.getRoles(username); while (roles.hasNext()) { TurbineRole role = (TurbineRole) roles.next(); String roleName = role.getName(); Iterator perms = JetspeedSecurity.getPermissions(roleName); while (perms.hasNext()) { String perm = ((TurbinePermission)perms.next()).getName(); //do something with Permission } } >>> [EMAIL PROTECTED] 01/02/03 07:29AM >>> Hallo, I try to get all the roles of a loggedin user like follows: ... Iterator it = runData.getACL().getRoles().elements(); ... But the AccessControlList allways is null! Why? A little hint would be nice! Thanks! Achim We�ling ************************************************************************ ** INFOKOM G�tersloh Fachbereich Technische Anwendungen / Zentrale Anwendungen Tel.: 05241/85-2926 [EMAIL PROTECTED] http://www2.infokom-gt.de/produkte -- 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
