Skip to Content.
Sympa Menu

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

Subject: Grouper Users - Open Discussion List

List archive

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


Chronological Thread 
  • From: Gagné Sébastien <>
  • To: <>
  • Subject: [grouper-users] Using JEXL in source's Description attribute
  • Date: Sat, 22 Sep 2012 09:42:59 -0400

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>

 

<init-param>

      <param-name>Description_AttributeType</param-name>

      <param-value>descriptionUnique</param-value>

</init-param>

 

“displayName” is the right name in AD and the attributes used are listed at the end (don’t know if it required) :

///Attributes you would like to display when doing a search

    <attribute>displayName</attribute>

    <attribute>sAMAccountName</attribute>

 

What am I doing wrong ? Is it impossible to use virtual attributes in the Description ? Is my JEXL wrong ? Currently it only work if I use the attribute name in the description, e.g. :

<init-param>

      <param-name>Description_AttributeType</param-name>

      <param-value>sAMAccountName</param-value>

</init-param>

 

My final goal is to have this description : displayName (sAMAccountName)

So I believe my JEXL should be : ${subject.getAttributeValue('displayName')} (${subject.getAttributeValue('sAMAccountName')})

 

Thanks

 

 

Sébastien Gagné,     | Analyste en informatique

514-343-6111 x33844  | Université de Montréal,

                     | Pavillon Roger-Gaudry, local X-100-11

 




Archive powered by MHonArc 2.6.16.

Top of Page