True, and besides those you also can have the <security-constraints> element in the portal's WEB-INF pages directory: - within the <folder> element of a folder.metadata file - within the <page> element of a psml file - within each <fragment> element of a psml file Jeroen
________________________________ Van: charyshs??? [mailto:[EMAIL PROTECTED] Verzonden: di 25-11-2008 1:56 Aan: Jetspeed Users List Onderwerp: Re: define role for portlet Hi Frank In case of j2-admin portlet, Defining security constraints is as follow : jetspeed/WEB-INF/pages/page.security <page-security xmlns="http://portals.apache.org/jetspeed" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://portals.apache.org/jetspeed http://portals.apache.org/jetspeed-2/2.1/schemas/page-security.xsd"> ... <security-constraints-def name="devmgr"> <security-constraint> <roles>devmgr</roles> <permissions>view</permissions> </security-constraint> <security-constraint> <roles>admin</roles> <permissions>view, edit, config, edit_defaults</permissions> </security-constraint> </security-constraints-def> ... Setting constraints in the portlet is as follow : j2-admin/WEB-INF/jetspeed-portlet.xml <portlet-app id="j2-admin" version="1.0" xmlns="http://portals.apache.org/jetspeed" xmlns:js="http://portals.apache.org/jetspeed" xmlns:dc="http://www.purl.org/dc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://portals.apache.org/jetspeed http://portals.apache.org/jetspeed-2/2.1/schemas/jetspeed-portlet.xsd"> ... <portlet> <portlet-name>DeveloperDetails</portlet-name> <js:security-constraint-ref>devmgr</js:security-constraint-ref> </portlet> .... Regards, HongShig 2008/11/25 Otto, Frank <[EMAIL PROTECTED]> > Thanks for your answer. > > I have no experience with PSML. Do I set the security constraints in the > portlet or in the portal? I need it for the portlet, because this is > different in each portlet. > > Have you an example please? > > > Kind regards > > Frank > > > -----Ursprngliche Nachricht----- > Von: Jeroen Hoffman [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 24. November 2008 16:41 > An: Jetspeed Users List > Betreff: RE: define role for portlet > > No, not in portlet.xml. > > You can set role and group based security constraints on various levels in > the psml pages and fragments, see > > > http://portals.apache.org/jetspeed-2/guides/guide-security-declarative-psml.html > > Jeroen Hoffman > > ________________________________ > > Van: Otto, Frank [mailto:[EMAIL PROTECTED] > Verzonden: ma 24-11-2008 16:26 > Aan: 'Jetspeed Users List' > Onderwerp: define role for portlet > > > > Hi, > > I have different roles in my jetspeed 2 portal. How can I define for a new > portlet the expected security role? With portlet.xml? > > > kind regards, > > Frank > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
