You can add security constraints to the portlet application level:

<portlet-app id="j2-admin" version="1.0"
...
  <js:security-constraint-ref>admin</js:security-constraint-ref>

Or at the specific portlet level:

  <portlet>
    <portlet-name>LoginPortlet</portlet-name>
    <js:security-constraint-ref>public-view</js:security-constraint-ref>

These security constraints filter what you see in the toolbox. Note
that portlet constraints override portlet-application constriaints



On Fri, Aug 5, 2011 at 3:46 AM, David Dyer <dd...@artifact-software.com> wrote:
> Hi everyone, can thedisplay of individual entries in the Portlets list in
> the Jetspeed toolbox be turned off/on based on the role(s) or groups(s) of
> the current user?
>
> eg. Hide administrative portlets options in the dropdown list and search
> from users who don't have the admin role.
>
> Is this handled by adding a security definition of some kind in the
> portlets.xml file?
>
> --
> David Dyer
> Senior Integration Specialist
> Artifact Software Inc
> email: dd...@artifact-software.com
> skype: ddyer1
> phone: 514-286-0636, ext 103.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
>
>



-- 
David

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to