Getting the user information in a portlet

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting the user information in a portlet

Mikko Wuokko
Hi.

Again with portlets and now I would need the user information. As
referring to my previous posts I were able to get the username with the
great help of you. Now I saw that this info is not enough for me and I
would also need the user information, user.name.given and
user.name.family to be exact, but I don't see a way to get these. Or is
the case just that this is unimplemented at the moment? I didn't find in
the sources any references to USER_INFO constant and as far as I know
thats the only place to access them.

Thanks again,

-Mikko



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Getting the user information in a portlet

Erik Bruchez
Administrator
Mikko,

You are right, this is not supported. The Servlet API only provides us
with the username.

Again, very unfortunately, we will have to wait until we develop better
support for JSR-168 for that kind of things to work.

In the meanwhile, you can use the username and query yourself your LDAP
or database containing user information.

-Erik

Mikko Wuokko wrote:

> Hi.
>
> Again with portlets and now I would need the user information. As
> referring to my previous posts I were able to get the username with the
> great help of you. Now I saw that this info is not enough for me and I
> would also need the user information, user.name.given and
> user.name.family to be exact, but I don't see a way to get these. Or is
> the case just that this is unimplemented at the moment? I didn't find in
> the sources any references to USER_INFO constant and as far as I know
> thats the only place to access them.
>
> Thanks again,
>
> -Mikko



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws