You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by James Wang <to...@yahoo.com> on 2002/08/19 12:29:12 UTC
how to get the roles of a user in Jetspeed?
I want to check the roles of the logined user,
AccessControlList aclt = rundata.getACL();
if(aclt.hasRole("news-editor"))
...
else
...
but always i cant get the expected result although
my logined user has been assgined the roles
'news-editor',
please help me.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: how to get the roles of a user in Jetspeed?
Posted by Mark Orciuch <ma...@ngsltd.com>.
James,
Try JetspeedSecurity.hasRole(username, rolename).
Best regards,
Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com
> -----Original Message-----
> From: James Wang [mailto:touchmyheart10000@yahoo.com]
> Sent: Monday, August 19, 2002 5:29 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: how to get the roles of a user in Jetspeed?
>
>
> I want to check the roles of the logined user,
>
> AccessControlList aclt = rundata.getACL();
> if(aclt.hasRole("news-editor"))
> ...
> else
> ...
>
> but always i cant get the expected result although
> my logined user has been assgined the roles
> 'news-editor',
>
> please help me.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>