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]>