Fetching user information from theme
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Fetching user information from theme




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Fetching user information from theme  
Fredrik Andersson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-17-04 08:33 AM

Hi,

I am developing a theme for WebSphere Portal v5 and I need to obtain a
multivalued field
from the user registry (an LDAP server).
By fetching the PUMA User object from the session, and editing
<portal server dir>/wmm/wmmLDAPServerAttributes.xml I am able to read the
first value of
the field by calling user.getAttribute().
However, since I can't be guaranteed that it is the first value that I
need, I must be
able to read the other values as well. Is there anyone who has been able to
do this from
within a theme?

Attribute mapping for the field in <portal server
dir>/wmm/wmmLDAPServerAttributes.xml:

<attributeMap
wmmAttributeName="someField"
pluginAttributeName="someField"
applicableMemberTypes="Person"
dataType="String"
valueLength="128"
multiValued="true" />

Regards,
Fredrik Andersson







[ Post a follow-up to this message ]



    Re: Fetching user information from theme  
Mattias Abrahamsson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-17-04 08:33 AM

Hello,

This is not possible since the user wrapper object can not pull more than
one attribute at a time. We have previously opened a PMR on this one and it
seems like there is a solution being implemented in 5.0.2.1.

Regards,
Matt


"Fredrik Andersson" <fidde7600@hotmail.com> wrote in message
news:c0teme$5hhm$1@news.boulder.ibm.com...
> Hi,
>
> I am developing a theme for WebSphere Portal v5 and I need to obtain a
> multivalued field
> from the user registry (an LDAP server).
>   By fetching the PUMA User object from the session, and editing
> <portal server dir>/wmm/wmmLDAPServerAttributes.xml I am able to read the
> first value of
> the field by calling user.getAttribute().
>   However, since I can't be guaranteed that it is the first value that I
> need, I must be
> able to read the other values as well. Is there anyone who has been able
to
> do this from
> within a theme?
>
> Attribute mapping for the field in <portal server
> dir>/wmm/wmmLDAPServerAttributes.xml:
>
>    <attributeMap
>       wmmAttributeName="someField"
>       pluginAttributeName="someField"
>       applicableMemberTypes="Person"
>       dataType="String"
>       valueLength="128"
>       multiValued="true" />
>
> Regards,
> Fredrik Andersson
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register