In the portlet.xml you use something like
Code Block |
---|
| xml |
---|
| xml |
---|
title | Declaring 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 |
---|
title | Role link to a PAGS groupxml |
---|
|
<role-link>pags.2</role-link>
|
Finally in the code you do this
Code Block |
---|
| java |
---|
| java |
---|
title | Querying for role / group membership in your JSR-168 Java codejava |
---|
|
boolean allowed = request.isUserInRole("myPortletAdmin");
|
...