[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-04-17 Thread Antoine_h
Yes, wiki would be good. but if I understood well, the wiki subject must be created by a jboss user, no ? = how to create a subject ? I did not find it (for other contribution, before). by the way, as you have declared the pamf service in the portlet description (jboss-portlet.xml), you can then

[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-04-17 Thread [EMAIL PROTECTED]
To create a new wiki page, just reference it from another page, then you will get a ? to click on. Or: Go to something like: http://wiki.jboss.org/wiki/Wiki.jsp?page=MyWikiPage replace MyWikiPage by anything. Then reference it from other pages. View the original post :

[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-04-17 Thread Antoine_h
done : http://wiki.jboss.org/wiki/Wiki.jsp?page=CheckPermissionOfAnyPortalObjectNode View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037924#4037924 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037924

[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-01-11 Thread [EMAIL PROTECTED]
Hello. you can check the permission on a role by using the request.isUserInRole(myRole) It would return true if the user has the role myRole. Would that be enough for you ? (if you define new roles other than user and admin you need to define them in portlet.xml so that it can work. See the

[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-01-11 Thread radzish
Thank you for answer. Unfortunatelly it is not enough for me. The problem is that I need to check permission of the current user for any PortalObjectNode instance from within my portlet (my custom navigation portlet). Of course, I can invent my own security-role property of page/window and

[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-01-11 Thread radzish
I have just found sollution! I injected PortalAuthorizationManagerFactory service into my navigation portlet in jboss-portlet.xml like following: service-nameAMF/service-name service-classorg.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory/service-class

[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-01-11 Thread [EMAIL PROTECTED]
Actually yes, you are right. Could you add this to our wiki for other users ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4000454#4000454 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000454