recover CreatorManager instance

View: New views
3 Messages — Rating Filter:   Alert me  

recover CreatorManager instance

by Nicolás Pace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi people,
we are making a lot of advance in our securityService in Spring Security Forum.
For what we are trying to accomplish (have an authorization proxy with
caching in the client), we need access to CreatorManager instance, so
we can ask acegi if the user has authorization to call each of the
beans exported by dwr.
I've been looking into the code, and i have no clue about how to get
the CreatorManager instance.
How can i get it?

thanks,

--
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.jornadasdelsur.org.ar/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: recover CreatorManager instance

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Haven't you been using the DWR container?  This should be pretty straightforward for you - something like this should work (although I don't have the source in front of me):
 

Container container = ServerContextFactory.get().getContainer();

CreatorManager creatorManager = container.getBean(CreatorManager.

class);

2009/6/17 Nicolás Pace <nicopace@...>
Hi people,
we are making a lot of advance in our securityService in Spring Security Forum.
For what we are trying to accomplish (have an authorization proxy with
caching in the client), we need access to CreatorManager instance, so
we can ask acegi if the user has authorization to call each of the
beans exported by dwr.
I've been looking into the code, and i have no clue about how to get
the CreatorManager instance.
How can i get it?

thanks,

--
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.jornadasdelsur.org.ar/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: recover CreatorManager instance

by Nicolás Pace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 17, 2009 at 11:27 AM, David Marginian<david@...> wrote:
> Haven't you been using the DWR container?  This should be pretty
> straightforward for you

I have been using it without knowing what it does!
It was more like Cut&Paste :D

> - something like this should work (although I don't
> have the source in front of me):
>
>
> Container container = ServerContextFactory.get().getContainer();
>
> CreatorManager creatorManager = container.getBean(CreatorManager.
>
> class);
I'll test it.
Thanks,


>
> 2009/6/17 Nicolás Pace <nicopace@...>
>>
>> Hi people,
>> we are making a lot of advance in our securityService in Spring Security
>> Forum.
>> For what we are trying to accomplish (have an authorization proxy with
>> caching in the client), we need access to CreatorManager instance, so
>> we can ask acegi if the user has authorization to call each of the
>> beans exported by dwr.
>> I've been looking into the code, and i have no clue about how to get
>> the CreatorManager instance.
>> How can i get it?
>>
>> thanks,
>>
>> --
>> Ing. Nicolás Pace
>> http://www.linkedin.com/in/nickar/
>> http://www.jornadasdelsur.org.ar/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>



--
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.jornadasdelsur.org.ar/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...