Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Grouper filter question

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Grouper filter question


Chronological Thread 
  • From: SUN Michael <>
  • To: Shilen Patel <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] Grouper filter question
  • Date: Thu, 4 Sep 2014 16:32:25 +0000
  • Accept-language: en-GB, en-US

Many thanks to Shilen @ duke.edu ;-) my problem is fixed, steps are as below, just in case anyone find this is useful in the future.

 

(1). Locate sources.xml

/grouper/grouper.apiBinary-2.2.0/conf/sources.xml

 

Update

        <init-param>

         <param-name>searchAttribute0</param-name>

         <param-value>uun</param-value>

        </init-param>

To

<init-param>

       <param-name>subjectVirtualAttribute_0_searchAttribute0</param-name>

       <param-value>${subjectUtils.defaultIfBlank(subject.getAttributeValue('UUN'), "")},${subjectUtils.defaultIfBlank(subject.getAttributeValue('Full Name'), "")}</param-value>

     </init-param>

     <init-param>

       <param-name>searchAttribute0</param-name>

       <param-value>searchAttribute0</param-value>

     </init-param>

     <internal-attribute>searchAttribute0</internal-attribute>

 

(2). Run

$ ./gsh.sh

gsh 0%

gsh 1% usdu() <-- this may take quite a while!

usdu completed successfully

gsh 2%

 

(3). Rebuild and Redeploy Grouper UI as

cd /grouper/grouper.ui-2.2.0

ant war

cp /grouper/grouper.ui-2.2.0/dist/grouper.war /apache-tomcat-8.0.9/webapps

 

Thanks,

 

Michael

Application Developer

The University of Edinburgh

 

 

 

 

From: Shilen Patel [mailto:]
Sent: 02 September 2014 20:04
To: SUN Michael
Cc:
Subject: Re: [grouper-users] Grouper filter question

 

I think you just need to adjust your sources.xml:

 

From:

 

        <init-param>

         <param-name>searchAttribute0</param-name>

         <param-value>uun</param-value>

        </init-param>

 

To something like:

 

     <init-param>

       <param-name>subjectVirtualAttribute_0_searchAttribute0</param-name>

       <param-value>${subjectUtils.defaultIfBlank(subject.getAttributeValue('UUN'), "")},${subjectUtils.defaultIfBlank(subject.getAttributeValue('Full Name'), "")}</param-value>

     </init-param>

     <init-param>

       <param-name>searchAttribute0</param-name>

       <param-value>searchAttribute0</param-value>

     </init-param>

     <internal-attribute>searchAttribute0</internal-attribute>

 

After making the config change, you'll have to refresh the member data in grouper, which can be done by running usdu() using gsh.

 

Let me know if that works?

 

Thanks!

 

-- Shilen

 

From: SUN Michael <>
Date: Tuesday, September 2, 2014 11:51 AM
To: "" <>
Subject: [grouper-users] Grouper filter question

 

Hello there,

 

We are running grouper 2.2, a quick question on [Apply filter] function on groups, see attached.

 

The filter seems to on member’s UUN(id of the member) only but not on their names i.e. first name, last name.

 

For example, suppose we have a user called Mark White in the group, his UUN is mwhite, first name is Mark, last name is White, the [apply filter] option can only return results if I put mwhite in the box, but not Mark nor White. I’d like to make the filter works on name as well.

 

I played with the source.xml configuration file in grouper.apiBinary-2.2.0/conf, doesn’t seem to do anything, source.xml attached for your reference. Am I looking at the wrong configuration file?

 

F.Y.I Search function (see the attachment, top right) works on both UUN and name.

 

Many Thanks,

 

Michael

 

Application Developer

The University of Edinburgh

 

 

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



Archive powered by MHonArc 2.6.16.

Top of Page