You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Franck MENEZ <fr...@oracle.com> on 2002/04/15 10:04:31 UTC

hide/diplay portlet

Hi,

Is there a parameter to hide or display one portlet according to the
user profile ?

thanks,

Franck


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: hide/diplay portlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
You restrict access to a portlet for a single role, see example in
admin.xreg:

  <portlet-entry type="ref" parent="CustomizerVelocity"
name="GroupBrowser">
    <security role="admin"/>

The GroupBrowser is an example portlet that is distributed with
Jetspeed.
If you logon to the admin account, you will see it there.
Yes you can use it in your own psml pages along with the GroupForm
portlet.

> Is there a link between role and group or user and group ?

Yes there is. See the Turbine docs on
http://jakarta.apache.org/turbine/turbine-2/turbine-schema.html
And the TURBINE_USER_GROUP_ROLE table for the association.

> -----Original Message-----
> From: Franck MENEZ [mailto:franck.menez@oracle.com] 
> Sent: Wednesday, April 17, 2002 1:17 AM
> To: Jetspeed Users List
> Subject: Re: hide/diplay portlet
> 
> 
> Hi David,
> 
> I think i've not understood how work the role, group and 
> users in JetSpeed :-( In fact, first, i'd like to hide a 
> specific portlet only if a user has a specific role (or 
> better if the opposite is possible : hide a specific portlet 
> for all users who have not a specific role). Second, i'd like 
> to know what means the 'group browser' in Jetspeed ? How can 
> i use it ? Is there a link between role and group or user and group ?
> 
> Thanks,
> 
> Franck
> 
> David Sean Taylor wrote:
> 
> > Not sure if I understand now ;)
> > You want to hide the portlet, but only if a user has a 
> specific role?
> >
> > > -----Original Message-----
> > > From: Franck MENEZ [mailto:franck.menez@oracle.com]
> > > Sent: Tuesday, April 16, 2002 3:05 AM
> > > To: Jetspeed Users List
> > > Subject: Re: hide/diplay portlet
> > >
> > >
> > > I don't understand...
> > > I saw this three lines in default.psml of user admin but 
> what have i 
> > > to do to hide a portlet which name is 'Headlines_news' for groups 
> > > which names are 'french_gr', 'spanish_fr' and show the 
> portlet for 
> > > 'deutch_gr' group ?
> > >
> > > thanks,
> > >
> > > Franck
> > >
> > > David Sean Taylor wrote:
> > >
> > > > From the admin psml:
> > > >
> > > >         <entry parent="RoleForm">
> > > >             <parameter name="_menustate" value="closed"/>
> > > >         </entry>
> > > >
> > > > > -----Original Message-----
> > > > > From: Franck MENEZ [mailto:franck.menez@oracle.com]
> > > > > Sent: Monday, April 15, 2002 1:05 AM
> > > > > To: jetspeed-user@jakarta.apache.org
> > > > > Subject: hide/diplay portlet
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Is there a parameter to hide or display one portlet
> > > according to the
> > > > > user profile ?
> > > > >
> > > > > thanks,
> > > > >
> > > > > Franck
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org> For
> > > > > additional commands,
> > > > > e-mail: <ma...@jakarta.apache.org>
> > > > >
> > > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > > > For
> > > additional commands,
> > > e-mail:
> > > > <ma...@jakarta.apache.org>
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:   
> <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: hide/diplay portlet

Posted by Franck MENEZ <fr...@oracle.com>.
Hi David,

I think i've not understood how work the role, group and users in JetSpeed :-(
In fact, first, i'd like to hide a specific portlet only if a user has a specific
role (or better if the opposite is possible : hide a specific portlet for all users
who have not a specific role).
Second, i'd like to know what means the 'group browser' in Jetspeed ? How can i use
it ? Is there a link between role and group or user and group ?

Thanks,

Franck

David Sean Taylor wrote:

> Not sure if I understand now ;)
> You want to hide the portlet, but only if a user has a specific role?
>
> > -----Original Message-----
> > From: Franck MENEZ [mailto:franck.menez@oracle.com]
> > Sent: Tuesday, April 16, 2002 3:05 AM
> > To: Jetspeed Users List
> > Subject: Re: hide/diplay portlet
> >
> >
> > I don't understand...
> > I saw this three lines in default.psml of user admin but what
> > have i to do to hide a portlet which name is 'Headlines_news'
> > for groups which names are 'french_gr', 'spanish_fr' and show
> > the portlet for 'deutch_gr' group ?
> >
> > thanks,
> >
> > Franck
> >
> > David Sean Taylor wrote:
> >
> > > From the admin psml:
> > >
> > >         <entry parent="RoleForm">
> > >             <parameter name="_menustate" value="closed"/>
> > >         </entry>
> > >
> > > > -----Original Message-----
> > > > From: Franck MENEZ [mailto:franck.menez@oracle.com]
> > > > Sent: Monday, April 15, 2002 1:05 AM
> > > > To: jetspeed-user@jakarta.apache.org
> > > > Subject: hide/diplay portlet
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Is there a parameter to hide or display one portlet
> > according to the
> > > > user profile ?
> > > >
> > > > thanks,
> > > >
> > > > Franck
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > > > For
> > > > additional commands,
> > > > e-mail: <ma...@jakarta.apache.org>
> > > >
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > > For
> > additional commands,
> > e-mail:
> > > <ma...@jakarta.apache.org>
> >
> >
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: hide/diplay portlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
Not sure if I understand now ;)
You want to hide the portlet, but only if a user has a specific role?

> -----Original Message-----
> From: Franck MENEZ [mailto:franck.menez@oracle.com] 
> Sent: Tuesday, April 16, 2002 3:05 AM
> To: Jetspeed Users List
> Subject: Re: hide/diplay portlet
> 
> 
> I don't understand...
> I saw this three lines in default.psml of user admin but what 
> have i to do to hide a portlet which name is 'Headlines_news' 
> for groups which names are 'french_gr', 'spanish_fr' and show 
> the portlet for 'deutch_gr' group ?
> 
> thanks,
> 
> Franck
> 
> David Sean Taylor wrote:
> 
> > From the admin psml:
> >
> >         <entry parent="RoleForm">
> >             <parameter name="_menustate" value="closed"/>
> >         </entry>
> >
> > > -----Original Message-----
> > > From: Franck MENEZ [mailto:franck.menez@oracle.com]
> > > Sent: Monday, April 15, 2002 1:05 AM
> > > To: jetspeed-user@jakarta.apache.org
> > > Subject: hide/diplay portlet
> > >
> > >
> > > Hi,
> > >
> > > Is there a parameter to hide or display one portlet 
> according to the 
> > > user profile ?
> > >
> > > thanks,
> > >
> > > Franck
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > > For
> > > additional commands,
> > > e-mail: <ma...@jakarta.apache.org>
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:   
> <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > For 
> additional commands, 
> e-mail: 
> > <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: hide/diplay portlet

Posted by Franck MENEZ <fr...@oracle.com>.
I don't understand...
I saw this three lines in default.psml of user admin but what have i to do to hide
a portlet which name is 'Headlines_news' for groups which names are 'french_gr',
'spanish_fr' and show the portlet for 'deutch_gr' group ?

thanks,

Franck

David Sean Taylor wrote:

> From the admin psml:
>
>         <entry parent="RoleForm">
>             <parameter name="_menustate" value="closed"/>
>         </entry>
>
> > -----Original Message-----
> > From: Franck MENEZ [mailto:franck.menez@oracle.com]
> > Sent: Monday, April 15, 2002 1:05 AM
> > To: jetspeed-user@jakarta.apache.org
> > Subject: hide/diplay portlet
> >
> >
> > Hi,
> >
> > Is there a parameter to hide or display one portlet according
> > to the user profile ?
> >
> > thanks,
> >
> > Franck
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
> >
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: hide/diplay portlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
>From the admin psml:

        <entry parent="RoleForm">
            <parameter name="_menustate" value="closed"/>
        </entry>

> -----Original Message-----
> From: Franck MENEZ [mailto:franck.menez@oracle.com] 
> Sent: Monday, April 15, 2002 1:05 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: hide/diplay portlet
> 
> 
> Hi,
> 
> Is there a parameter to hide or display one portlet according 
> to the user profile ?
> 
> thanks,
> 
> Franck
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>