burtonator wrote:
> 
> Dave Carlson wrote:
> >
> > Can I have alternative psml files that depend on the user *role*?
> 
> Possibly if you can update the Profiler mechanism.  This was just
> recently added by Raphael in 1.2b1  It shouldn't be too hard.  If you
> want an impl just also provide docs so we can incorporate it into
> Jetspeed.
> 

Yes you need to implement a Profiler that looks for the 
authenticated User roles for selecting the PSML file.
You can use whatever naming scheme suits your purpose:
- <user>-<role>.psml
- <role>/<user>.psml
- ...

Just be aware that when we'll move to Cocoon, the Profiler will be dropped
to be replaced by the Cocoon sitemapb (which provides at least equivalent
functionality).

> > I'm
> > not concerned with the Turbine admin, but have been thinking about
> > role-based defaults for the Jetspeed "home page".  Is this easily
> > do-able?
> 
> Yes.  The implementation is up for discussion.  I know Raphael wanted to
> lean towards using files (for media types though) but I wanted to use
> internal media types.
> 

Actually what I wanted was to have one file per user "context".
Thus I'd see a PSML structure like:
<user>/default.psml
<user>/default-wml.psml
<user>/overworked.psml
<user>/overworked-pdf.psml
<user>/overworked-wml.psml
...

Where default or overworked are 2 user selectable contexts depending on
my mood or use conditions and (-wml,-pdf,...) are access dependant to 
allow fine grained customization / access device capability.

--
Rapha�l Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to