Title: RE: security : print action access

Here is my entire security definition :

<security-entry name="all-portlets">
                <meta-info>
                        <title>Portlets g�n�rales</title>
                        <description>Pour les portlets qui ne font pas partie
                d&apos;une cat�gorie (finance, logisitique,...) et les
                groupes de portlets (portlets). Acc�s total pour les
                power users et les admin. View, maximize, minimize et
                print                 pour les utilisateurs simples
                (user).View seulement pour anon.</description>
                </meta-info>
                <access action="">
                        <allow-if role="admin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
                <access action="">
                        <allow-if role="poweruser" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
                <access action="">
                        <allow-if role="user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
                <access action="">
                        <allow-if role="user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
                <access action="">
                        <allow-if role="user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
                <access action="">
                        <allow-if role="user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
                <access action="">
                        <allow-if user="anon" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>

                </access>
        </security-entry>

here is a portlet definition using this security def (in xreg) :

<portlet-entry name="nytimes" hidden="false" type="ref" parent="RSS" application="false">
        <security-ref parent="all-portlets"/>
        <meta-info>
                <title>The New York Times</title>
                <description>The New York Times, famous american daily newspaper.</description>
        </meta-info>
        <classname>org.apache.jetspeed.portal.portlets.NewRSSPortlet</classname>
        <parameter name="openinpopup" value="true" hidden="false" cachedOnName="true" cachedOnValue="true"/>
        <url cachedOnURL="true">/rss/nytimes.rss</url>
        <category group="Jetspeed">Demo PCS</category>
</portlet-entry>


and finally the complete psml for my user is attached.

I use the cvs head code from 07.02.03.

Thank you for taking some of your time for this !

Greetings,

Pierre


> -----Original Message-----
> From: Mark Orciuch [mailto:[EMAIL PROTECTED]]
> Sent: mardi, 18. mars 2003 16:35
> To: Jetspeed Users List
> Subject: RE: security : print action access
>
>
> > Here is my security reference xreg definition. Again, if I replace
> > "print_friendly" with "info" (or other actions), the info
> icon appears !
> >
> > <access action="">
> >   <allow-if role="user"
> >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >  
> xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecuri
> tyAllow"/>
> > </access>
> >
>
> The "print_friendly" is correct (as defined by
> JetspeedSecurity.PERMISSION_PRINT_FRIENDLY). I just tested it
> and it works
> for me. I used the CVS head code but it shouldn't matter
> since this was
> implemented in 1.4b2 and I don't recall any fixes to this
> feature. Could you
> please post the psml fragment as well (and a complete security ref
> definition).
>
> Best regards,
>
> Mark Orciuch - [EMAIL PROTECTED]
> Jakarta Jetspeed - Enterprise Portal in Java
> http://jakarta.apache.org/jetspeed/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to