From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
Sonny Sukumar wrote:
>
> Hi guys,
>
> Today is my first venture into the Cocoon authentication framework, and I
> got a little confused on some points:
>
> 1.) Are the sunShine components the same as those described in this doc?:
>
> http://cocoon.apache.org/2.0/developing/webapps/authentication.html
>
> They seem to be one and the same, yet all the names are different in that
> doc. Does anybody know why?
>
They are the same. When the code was donated by s&n to Cocoon, they were
called
sunShine, sunRise etc. But the cocoon community decided that these names are
now well suited for Cocoon, so everything has been renamed to more
functional
names, like session framework or authentication framework.-
Ok, got it. I'm running Cocoon 2.0.4, so all I see is sunShine, etc., so I got confused. I guess I better upgrade to 2.1, so I'm current.
> 2.) That doc also describes "session contexts", which I've never > heard of or > seen elsewhere. Are such "contexts" entirely different than session > attributes? > Now, a session context is an XML document stored in the session. With the session transformer (see below) you can fetch xml data out of such a context and store data in it.
Oh ok, so a session context is a session attribute that happens to be an XML doc. But of what class type is this XML doc? Just curious...
> 3.) The doc furthermore has this line in it: > > <session:getxml context="authentication" path="/authentication/ID"/> > > So I assume <session:getxml ..../> is a logichsheet call, but > I've only seen > a logicsheet called xsp-session that provides an interface to a Session > instance. And I don't see any "getxml" element for that logicsheet. > This is not a logicsheet but a transformer, so you can use this transformer in your cocoon pipeline to set/get data to/from a session context, like the authentcation session context in the example above.
Hmm, I thought if it's a transformer it should be called like "<map:transform type="..." .../>
Why isn't this the case?
Thanks for your help Carsten,
Sonny
Carsten
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
