Alfonsina:

On Tue, 2005-12-06 at 15:45 -0300, Alfonsina wrote:
> Randy i appreciate your time.
> 
> This is my escenario :
> 
> i have 2 psml both with one fragment. One have a security constraint to role
> "guest" and
> the other have a security constrat to role "user".
> The misions of these psml is to show on links if the user is log in , and
> another  link if the user is not log in.
> If the user is not log in , the psml with security "guest" is shows on the
> jetspeed menu.
> If the user is log in , the psml with security "user" shows on.
> This works great !
> 
> Now, i need to refernecing  to this psml in another module. Imagine a link
> in an application to one of these psmls
> If the user is login, i need to call de psml with security "user", if the
> user is not log in i need to call de psml with security "guest". And here is
> the problem, y dont want to ask if the user is log in, i want to do this
> with security constraint and one psmal, like J 1.5

Ok. Please look into the J2 Profiler. If you have a PSML file called
start.psml, put the two versions you want to have in these locations:

jetspeed/WEB-INF/pages/_user/guest/start.psml  <- not logged in
jetspeed/WEB-INF/pages/start.psml              <- logged in

The url to both of these will be something like:

http://x.y.z/jetspeed/portal/start.psml

assuming that the "guest" user is still configured with the default J2
profiling rule.

> 
> For this reason i want to have only one psml with securtity contraints in
> the fragment.  So from the aplication i told , i could only link to one
> portlet, leaving jetspeed to decide waht fragment shows.
> 

Understood. Profiler and Security are related. I like to think of these
as follows: Profiling is coarse grain and Security Constraints are fine
grain adjustments to profiled pages.

While i do plan to provide this feature, it is not in there for M3 and
may not make it into 2.0 using Castor. It is already implemented in the
Database PageManager for the 2.0 release.

> Could you understand me ? I hope so.
> 
> thanxs
> Alfonsina
> 
> Sorry for writing  to your personal email, but my english embarase me
> 
> 
> ----- Original Message ----- 
> From: "Randy Watler" <[EMAIL PROTECTED]>
> To: "Jetspeed Users List" <[email protected]>
> Sent: Tuesday, December 06, 2005 2:56 PM
> Subject: Re: fragment and security constraints question
> 
> 
> > Alfonsina,
> >
> > I am not sure what you are asking here... specifically "without knowing
> > the role of the user" is confusing.
> >
> > Can you rephrase the question if you have one?
> >
> > Randy
> >
> > On Tue, 2005-12-06 at 14:02 -0300, Alfonsina wrote:
> > > thank you randy for your answer
> > > I´m using J2 M3.
> > > And need to solve this in this days
> > >
> > >
> > > Now i´m using to psmls , with diferents  security constraint each. But
> now i
> > > need to referencing one
> > > of them without knowing the role of  the user.
> > >
> > > Again thanxs ....
> > >
> > > Alfonsina
> > >
> > >
> > >
> > > ----- Original Message ----- 
> > > From: "Randy Watler" <[EMAIL PROTECTED]>
> > > To: "Jetspeed Users List" <[email protected]>
> > > Sent: Tuesday, December 06, 2005 1:44 PM
> > > Subject: Re: fragment and security constraints question
> > >
> > >
> > > > Alfonsina,
> > > >
> > > > What version are you using... it is already in place for the new DB
> > > > PageManager in the svn HEAD.
> > > >
> > > > In PSML, it could be in there most likely today if you need such a
> > > > thing. We were holding off on implementing this in XML PSML due to
> > > > release 2.0 timing.
> > > >
> > > > Is this something you need today or in the future? Let me know ASAP
> > > > please.
> > > >
> > > > Randy
> > > >
> > > > On Tue, 2005-12-06 at 12:47 -0300, Alfonsina wrote:
> > > > > Y have a psml with this fragments .
> > > > >
> > > > > <page>
> > > > >     <fragment id="1">
> > > > >              ....
> > > > >     <fragment >
> > > > >     <fragment id="2">
> > > > >              ....
> > > > >     <fragment >
> > > > > </page>
> > > > >
> > > > > can i use a security cosntraints to a particular fragment. , for
> example
> > > ,
> > > > > show the fragment 1 if the user has a particular role.
> > > > >
> > > > > anybody could help me
> > > > >
> > > > > Thxs
> > > > >
> > > > > Alfonsina
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ___________________________________________________________
> > > > > 1GB gratis, Antivirus y Antispam
> > > > > Correo Yahoo!, el mejor correo web del mundo
> > > > > http://correo.yahoo.com.ar
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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]
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ___________________________________________________________
> > > 1GB gratis, Antivirus y Antispam
> > > Correo Yahoo!, el mejor correo web del mundo
> > > http://correo.yahoo.com.ar
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> 
> 
>       
> 
>       
>               
> ___________________________________________________________ 
> 1GB gratis, Antivirus y Antispam 
> Correo Yahoo!, el mejor correo web del mundo 
> http://correo.yahoo.com.ar 
> 
> 


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

Reply via email to