Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Using JEXL in source's Description attribute

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Using JEXL in source's Description attribute


Chronological Thread 
  • 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





Archive powered by MHonArc 2.6.16.

Top of Page