|
Home > Archive > WebSphere Portal Server > February 2004 > Fetching user information from theme
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Fetching user information from theme
|
|
| Fredrik Andersson 2004-02-17, 3: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
| |
| Mattias Abrahamsson 2004-02-17, 3: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
>
>
|
|
|
|
|