You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Panu Hällfors <pa...@hallfors.com> on 2003/01/16 14:03:16 UTC

Wrapping action calls (JAAS auth)

Hi all!

I'm striving to enable Turbine to run all Actions using
programmatic JAAS privileges. I'm able to do this by using
a common parent class for all my Actions and Screen classes
but it's quite a hack and doesn't apply to internal actions.

The better way to approach this, I think, would be to
hook into action loading code. What I tried to do is that
I created a custom AssemblerBrokerService that wraps the
loaded action into another one that calls the original
Action with JAAS privileges.
However, it can't: Action.perform(RunData) is protected
(I must call it instead of doPerform since some of our
abstract action classes do things there)

There is a way to make this work, though: to declare
my wrapper Action class in package org.apache.turbine.modules
but it's something I really do not feel like doing...

Any suggestions?

Thanks,

    Panu

-- 
Panu Hällfors, panu@hallfors.com|CS Student, Helsinki University of Technology
   http://panu.hallfors.com     |    Chief Software Architect, Viloke Oy

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>