portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor" <da...@bluesunrise.com>
Subject RE: role based psml and customiser
Date Wed, 20 Mar 2002 17:33:34 GMT
The profiler can find the psml file using its fallback.
Look at the PSMLManager service:

    public PSMLDocument createDocument( Profile profile )

So just get the role-profile normally, clone it, and then modify the
parameters:

	Profile userProfile = profile.clone();
	userProfile.setRole(null);
	userProfile.setUser( current user );

And then call

	PSMLManager.createDocument(userProfile)

> -----Original Message-----
> From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com] 
> Sent: Wednesday, March 20, 2002 9:15 AM
> To: Jetspeed Developers List
> Subject: RE: role based psml and customiser
> 
> 
> Hi,
> 
> --- David Sean Taylor <david@bluesunrise.com> wrote:
> > 
> > No problem. If I understand correctly, the customizer would 
> determine
> > that the user doesn't have a personal page, and then use the
> > role-based
> > fallback to locate the role-based page, and copy it over to the
> > user's
> > personal page. From that point on, the user would no longer be
> > using
> > role-based fallback, right :/ ?
> > 
> 
> Yep - now to see how hard it is...
> 
> Chris
> 
> =====
> http://www.soccer2002.org.uk - join in and win CA$H!
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message