[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-28 Thread djmacpac
OK I managed it: I had to delete all portlet and portal libs from my lib folder in the application-war... thx for your help guys ;-) Have a nice day View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989202#3989202 Reply to the post :

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread djmacpac
I'm having the same questions... ;-) THX for your help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988852#3988852 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988852 ___

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=DeterminePortalLoggedInUser View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988855#3988855 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988855

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread djmacpac
That's good...but it only works with the UserName :-/ I need to find the actual RoleName... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988932#3988932 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988932

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread [EMAIL PROTECTED]
It follows the J2EE security schema. You access the principal and you can tell if the user X has role Y. request.isUserInRole(roleName) If you need to access the list of roles, then you need to access the user/role/membership modules. See the API View the original post :

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread djmacpac
Hmm, that's the problem: I get the UserName via | String UserName = (String)req.getRemoteUser(); | and i can get the Name via | java.security.Principal principal = req.getUserPrincipal(); | Both works fine. But when I try to create a User like this | User user =

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread bdaw
try adding portal-identity-lib.jar to your classpath View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989126#3989126 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989126 ___

[jboss-user] [JBoss Portal] - Re: Easiest way to get the Current Users's Role?

2006-11-27 Thread djmacpac
It is in the classpath, but it won't work :-/ Another Idea? Perhaps it is helpfull when I say that I'm using the portal with mysql! Do I need to work with transactions? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989171#3989171 Reply to the post :