You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Frank Otto <ot...@delta-barth.de> on 2009/01/30 10:09:26 UTC
get UserManager from servlet in jetspeed2 app
Hi,
I have an servlet in my jetspeed2 app and I can get the jetspeed engine.
Engine engine = Jetspeed.getEngine();
Is it possible to get the UserManager from the engine?
In other words, how can I get the UserManager in my servlet, because I
have access to jetspeed environment.
kind regards,
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: get UserManager from servlet in jetspeed2 app
Posted by Frank Otto <ot...@delta-barth.de>.
that works. thanks...
Ate Douma schrieb:
> Frank Otto wrote:
>> thanks for your fast answer, but I get following error:
>>
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>> bean named 'UserManager' is defined
>
> Oh, I confused this with the Jetspeed Service Name.
>
> Try again with:
> UserManager userManager =
> (UserManager)engine.getComponentManager().getComponent("org.apache.jetspeed.security.UserManager");
>
>
> Note: these are the Spring bean names as configured in the Spring
> assembly files (under WEB-INF/assembly)
>
>>
>>
>> Ate Douma schrieb:
>>> Frank Otto wrote:
>>>> Hi,
>>>>
>>>> I have an servlet in my jetspeed2 app and I can get the jetspeed
>>>> engine.
>>>>
>>>> Engine engine = Jetspeed.getEngine();
>>>>
>>>> Is it possible to get the UserManager from the engine?
>>> UserManager userManager =
>>> (UserManager)engine.getComponentManager().getComponent("UserManager");
>>>
>>>>
>>>> In other words, how can I get the UserManager in my servlet, because
>>>> I have access to jetspeed environment.
>>>>
>>>>
>>>> kind regards,
>>>>
>>>> Frank
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: get UserManager from servlet in jetspeed2 app
Posted by Ate Douma <at...@douma.nu>.
Frank Otto wrote:
> thanks for your fast answer, but I get following error:
>
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'UserManager' is defined
Oh, I confused this with the Jetspeed Service Name.
Try again with:
UserManager userManager = (UserManager)engine.getComponentManager().getComponent("org.apache.jetspeed.security.UserManager");
Note: these are the Spring bean names as configured in the Spring assembly files (under WEB-INF/assembly)
>
>
> Ate Douma schrieb:
>> Frank Otto wrote:
>>> Hi,
>>>
>>> I have an servlet in my jetspeed2 app and I can get the jetspeed engine.
>>>
>>> Engine engine = Jetspeed.getEngine();
>>>
>>> Is it possible to get the UserManager from the engine?
>> UserManager userManager =
>> (UserManager)engine.getComponentManager().getComponent("UserManager");
>>
>>>
>>> In other words, how can I get the UserManager in my servlet, because
>>> I have access to jetspeed environment.
>>>
>>>
>>> kind regards,
>>>
>>> Frank
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: get UserManager from servlet in jetspeed2 app
Posted by Frank Otto <ot...@delta-barth.de>.
thanks for your fast answer, but I get following error:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'UserManager' is defined
Ate Douma schrieb:
> Frank Otto wrote:
>> Hi,
>>
>> I have an servlet in my jetspeed2 app and I can get the jetspeed engine.
>>
>> Engine engine = Jetspeed.getEngine();
>>
>> Is it possible to get the UserManager from the engine?
> UserManager userManager =
> (UserManager)engine.getComponentManager().getComponent("UserManager");
>
>>
>> In other words, how can I get the UserManager in my servlet, because I
>> have access to jetspeed environment.
>>
>>
>> kind regards,
>>
>> Frank
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: get UserManager from servlet in jetspeed2 app
Posted by Ate Douma <at...@douma.nu>.
Frank Otto wrote:
> Hi,
>
> I have an servlet in my jetspeed2 app and I can get the jetspeed engine.
>
> Engine engine = Jetspeed.getEngine();
>
> Is it possible to get the UserManager from the engine?
UserManager userManager = (UserManager)engine.getComponentManager().getComponent("UserManager");
>
> In other words, how can I get the UserManager in my servlet, because I
> have access to jetspeed environment.
>
>
> kind regards,
>
> Frank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org