[jboss-user] [JBoss Portal Users] - How to use<!--<restrict>#{s:hasRole('ACCOUNTANT')}</restrict
guenther.herndl@softcon.de
do-not-reply at jboss.com
Thu Aug 27 06:28:50 EDT 2009
PostPosted: Thu Aug 27, 2009 05:56 AM Post subject: How to use<!--#{s:hasRole('ACCOUNTANT')}</restrict Reply with quote
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=4252024#4252024
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252024
More information about the jboss-user
mailing list