Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

In the portlet.xml you use something like

Code Block
xmlxml
titleDeclaring a role in portlet.xml aliasing back to a uPortal Group
xml
<security-role-ref>
  <role-name>myPortletAdmin</role-name>       
  <role-link>local.107</role-link>
</security-role-ref>

...

To access PAGS groups you would use something like.

xml
Code Block
xml
titleRole link to a PAGS group
xml
<role-link>pags.2</role-link>

Finally in the code you do this

java
Code Block
java
titleQuerying for role / group membership in your JSR-168 Java code
java
boolean allowed = request.isUserInRole("myPortletAdmin"); 

...