You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Felix Knecht <fe...@otego.com> on 2007/02/02 13:18:22 UTC

Accessing User from cocoon-auth-block

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The ApplicationUtil class seems to be the right way to access data in
the user object set during authentication (SecurityHandler). The Util
class has different static functions to use from flow. All of them
need as parameter the current objectmodel. How do I get this in
flowscript?

Regards
Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwywO2lZVCB08qHERAk0zAKDX6udwMHhSWa7EC4j69zeHrcBdvACcCkRD
6lqvFx7C+v6DTYTUh6J93A8=
=rRqE
-----END PGP SIGNATURE-----


Re: Accessing User from cocoon-auth-block

Posted by Carsten Ziegeler <cz...@apache.org>.
Felix Knecht schrieb:
> 
>> FlowScript - I'll updated the javadocs :)
> 
> That's a lot better to understand (maybe I'm a special case ;-) )
> 
No comment :)

Carsten

Re: Accessing User from cocoon-auth-block

Posted by Felix Knecht <fe...@otego.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> FlowScript - I'll updated the javadocs :)

That's a lot better to understand (maybe I'm a special case ;-) )

Felix

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwzw02lZVCB08qHERAvdZAKCYYVGdhPDPse7LxIBD0Tk084V7hQCgp4+l
3fZrHufL5VnqGOWprfsp4zg=
=v9zB
-----END PGP SIGNATURE-----


Re: Accessing User from cocoon-auth-block

Posted by Carsten Ziegeler <cz...@apache.org>.
Felix Knecht wrote:
> 
> It helped.
> 
> I think the comment in the class itself isn't (at least in my case)
> not very clear. Escpecially what is meant with 'flow' (Flowscript /
> Javaflow / other flow)?
>
FlowScript - I'll updated the javadocs :)

-- 
Carsten Ziegeler
http://www.osoco.org/weblogs/rael/

Re: Accessing User from cocoon-auth-block

Posted by Felix Knecht <fe...@otego.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carsten Ziegeler schrieb:
> You don't have access to the object model in flow.
>
> But you can create an instance of the application util using
> cocoon.createObject("FULL_CLASSNAME") and then use the instance
> methods.
>

It helped.

I think the comment in the class itself isn't (at least in my case)
not very clear. Escpecially what is meant with 'flow' (Flowscript /
Javaflow / other flow)?

Thanks
Felix


> HTH Carsten
>
> Felix Knecht wrote:
>> The ApplicationUtil class seems to be the right way to access
>> data in the user object set during authentication
>> (SecurityHandler). The Util class has different static functions
>> to use from flow. All of them need as parameter the current
>> objectmodel. How do I get this in flowscript?
>>
>> Regards Felix
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwzPO2lZVCB08qHERAme9AKDg/3ufyMOSlmnulfao5BN8quNt/wCeK1xy
3H4u9SQbZekvAF8GpPaHynk=
=nGQf
-----END PGP SIGNATURE-----


Re: Accessing User from cocoon-auth-block

Posted by Carsten Ziegeler <cz...@apache.org>.
You don't have access to the object model in flow.

But you can create an instance of the application util using
cocoon.createObject("FULL_CLASSNAME") and then use the instance methods.

HTH
Carsten

Felix Knecht wrote:
> The ApplicationUtil class seems to be the right way to access data in
> the user object set during authentication (SecurityHandler). The Util
> class has different static functions to use from flow. All of them
> need as parameter the current objectmodel. How do I get this in
> flowscript?
> 
> Regards
> Felix

-- 
Carsten Ziegeler
http://www.osoco.org/weblogs/rael/