[jboss-dev-forums] [JBoss Portal Development] - How to use<!--<restrict>#{s:hasRole('ACCOUNTANT')}</restrict
guenther.herndl@softcon.de
do-not-reply at jboss.com
Thu Aug 27 05:56:21 EDT 2009
If I use SEAM directly without the PortalBridge I can use Roles defined via our application like:
<!--
#{s:hasRole('ACCOUNTANT')}
-->
In component.xml is via security defined how do deal with login and what to do. But via the PortletBridge I have to use SSO of JBoss Portal. I found the folowing coment:
public boolean authenticate()
{
//This code is not used in portal environment when utilitizing the PortalIdentity bridgelet.
To get the UserDate to have added instead:
@In
private Credentials credentials;
So I have to define all user and relates Roles via the AdminPart of the Portal. I tried to use the s.hasRole('ssss') also via the PortalBridge but I allways got false. All SEAM DemoExamples offered for the Bridge do not use this hasRole Part. How is it possible to work with the Roles via the PortletBridge?
Kind Regards
Günther Herndl
softcon
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252015#4252015
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252015
More information about the jboss-dev-forums
mailing list