grouper-users - Re: [grouper-users] Using JEXL in source's Description attribute
Subject: Grouper Users - Open Discussion List
List archive
- From: Francesco Malvezzi <>
- To: "" <>
- Subject: Re: [grouper-users] Using JEXL in source's Description attribute
- Date: Mon, 24 Sep 2012 08:42:47 +0200
- Unimore-x-sa-score: -1.2
Il 22/09/2012 15:42, Gagné Sébastien ha scritto:
> Hi,
>
> Regarding my previous post about identical Description results being
> dropped from search, I’m trying to combine the user’s displayName and
> Login into the description, but so far I’ve failed.
>
>
>
> I tried using JEXL straight in the description attribute and it didn’t
> work :
>
> <init-param>
>
> <param-name>Description_AttributeType</param-name>
>
> <param-value>${subject.getAttributeValue('displayName')}</param-value>
>
> </init-param>
>
>
>
> I tried using a virtual attribute, but it didn’t work :
>
> <init-param>
>
> <param-name>subjectVirtualAttribute_0_descriptionUnique</param-name>
>
> <param-value>${subject.getAttributeValue('displayName')}</param-value>
>
> </init-param>
I am using this one (sources.xml, inside my ldap source):
<init-param>
<param-name>subjectVirtualAttribute_1_displayName0</param-name>
<param-value>${subject.name}, ${subject.description}</param-value>
</init-param>
You could test this is in gsh with:
subject.getAttributeValue("displayName0")
I had to edit the file:
/opt/grouper.ui/conf/resources/grouper/media.properties in these section
(very scattered)
subject.display.default=displayName0
[...]
#grouperUi.subjectImg.sourceId.0 = pennperson
#grouperUi.subjectImg.image.0 = user.png
## screen EL has "subject" as an object
#grouperUi.subjectImg.screenEl.0 = ${subject.description}
grouperUi.subjectImg.sourceId.0 = unimore #is my name of the ldap source
grouperUi.subjectImg.image.0 = user.png
# screen EL has "subject" as an object
grouperUi.subjectImg.screenEl.0 =
${subject.getAttributeValue("displayName0")}
regards,
Francesco
- [grouper-users] Using JEXL in source's Description attribute, Gagné Sébastien, 09/22/2012
- Re: [grouper-users] Using JEXL in source's Description attribute, Francesco Malvezzi, 09/24/2012
- RE: [grouper-users] Using JEXL in source's Description attribute, Gagné Sébastien, 09/24/2012
- Re: [grouper-users] Using JEXL in source's Description attribute, Dominique Petitpierre, 09/24/2012
- RE: [grouper-users] Using JEXL in source's Description attribute, Gagné Sébastien, 09/24/2012
- Re: [grouper-users] Using JEXL in source's Description attribute, Francesco Malvezzi, 09/24/2012
Archive powered by MHonArc 2.6.16.