Versions Compared

Key

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

In the portlet.xml you use something like

Code Block
xml
xml
titleDeclaring a role in portlet.xml aliasing back to a uPortal Groupxml
<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.

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

Finally in the code you do this

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

...