Tutorial 4 comes with one portlet, the Security Example portlet.
This portlet allows for you to click on four different portal links. These links were created with the $jslink tool, which is used in templates to generate links to portal resources.
|Link Name||Linked Resource||Works with Anon||Works with Authenticated|
|Page Requires Admin Role||
link to default admin user page
|Page Requires User Role||
link to apache group, news page
|Page Requires No Role||
link to default apache group page
|Pane Requires User Role||
link to anonymous user default page, pane id = 105
When you test it out, you will see that there is a fifth pane on the anonymous page, but you cannot see it when you are logged on as the anonymous user. However, when you logon as the Turbine user, and click on the "Pane Requires User Role", then the pane does show up, since the Turbine user does have the User role.
The pane in the anonymous page has a security constraint:
<portlets id="105"> <security-ref parent="user-only"/> <metainfo> <title>Secured</title> </metainfo> <entry parent="HelloVelocity"/> </portlets>