ProviderContext getRole

We are currently trying to create a channel that displays dynamic content to a user based on their role. We had read in the Developer's Guide (2005 Q1) that ProviderContext has a method called getRole but this method does not appear in the ProviderContext javadocs or in the tag library tld. Anyone know if this method really exists and how to implement it?

Thanks,

Allan

[391 byte] By [logan9999] at [2007-11-26 6:09:02]
# 1

[nobr]The answer is...

In a jsp provider view jsp:

<%

com.sun.portal.providers.jsp.JSPProvider p = (com.sun.portal.providers.jsp.JSPProvider)pageContext.getAttribute("JSPProvider");

Set set = p.getProviderContext().getRoles();

if (set != null)

{

Iterator it = set.iterator();

while(it.hasNext())

{

%>

<%=(String)it.next()%>

<br>

<%

}

}

%>

[/nobr]

logan9999 at 2007-7-6 13:40:25 > top of Java-index,Web & Directory Servers,Portal Servers...