I'm fishing around for suggestions before coding some classes for some UI
logic.

Background:
I have a set of resources that are available only to authorized users. Who
is authorized and what he/she is authorized to do is determined by a lookup
in an external resource (for this application, an LDAP directory). The level
of functionality (e.g. "security clearance") depends on the user's role(s),
again determined from the external resource.

What I'm thinking of:
I'd like to make my content served by Quixote essentially polymorphic,
determined by the role the user takes. This points me in the direction of
subclassing a base class for each role. I imagine q_lookup() would call a
method within a class determined by the client's role.

One reason I'm thinking of this:
One constraint on non-Quixote technologies is that the html served is
derived from a XSLT transform of XML data returned by my application logic
using a cached XSLT stylesheet. (I won't be using PTL at all.) I imagine
each class will have a set of stylesheets that are class attributes derived
from class methods (pardon me if my OO-terminology is a bit off, but what I
mean is every instance of a given class will share the same set of
stylesheets, each a singleton). The libxml2 and libxslt modules seem to work
really well for this.

Is this problem really as trivial as it seems?
Before experimenting with my own ideas, I'd like to solicit ideas about how
others would incorporate this into a q_lookup() method?
Thanks in advance.

-al
Al Pacifico
Seattle, WA



_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to