Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Re: Grouper UI - set subject columns in all relevant search/membership lists

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Re: Grouper UI - set subject columns in all relevant search/membership lists


Chronological Thread 
  • From: "Waldbieser, Carl" <>
  • To: Chris Hyzer <>
  • Cc: grouper-users <>
  • Subject: [grouper-users] Re: Grouper UI - set subject columns in all relevant search/membership lists
  • Date: Mon, 13 Nov 2017 16:37:00 -0500 (EST)
  • Ironport-phdr: 9a23:5sf/ExXzW05TJcCoSSGTTcjtT4zV8LGtZVwlr6E/grcLSJyIuqrYbBKDt8tkgFKBZ4jH8fUM07OQ6PGwHzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdxIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KpwVhTmlDkIOCI48GHPi8x/kqRboA66pxdix4LYeZyZOOZicq/Ye94RWGhPUdtLVyFZDI2yb5UBAekDMuZWsofyqEcBoxS/BQerGOPi0SNIhmbq0qEmyektDQPL0Qo9FNwOqnTUq9D1Ob8cXe+11qbIySjMYOhX2Tjj84jHbAohremRVr9ua8XR000vGw3YhViXp43qJTeV2fkWvGia8eVvSfmii2o9pAF/uDeuxtkjipXVho0L0FzL6zh2wJssKNC+VUV1YsakHYNNuyyUM4Z6WN4uTm5qtSog17EKpIS3cDUKxZg63xLTdvKKfoyS7h7+W+ucIy10iG9ldb6lmRq+7VWsxvXhWsS61FtGtDdJn9bOu3wXyhDf99KLRuZz80u/3zuEyhrd5fteIU8ukKrWM54hzaA0lpoUqUnDGzP2l1/5gaOMckUr4Oao5P7nY7r4up+cK5F7hhvgPaszh8yzGeU4Mg4QUGiH4emwybPu8EnjTLlXgfA7kLPVvI3HKcgBu6K0AxJZ3p4m6xmlDjem1NoYnWMALFJAYB+GgZLmO1XTL//jDPewnUijnSxvx//cML3uGJXMIWbfkLf9Y7lx8VBTxxcuzdxH/ZJbFqkBIO7vWk/2rNHYAQU5Mwupw+b/Ftp9zJoSWX+UAqCHKqPSqkSF5uYuI+mXeI8VoyjxJ+Ik5/7okX82h0Udfa+30psLdny0BOppLFiEYSmkvtBUOmcQvxF2bP34hUfKBTtYZ2egUrgU5yowTp++AIHFAI2hnerS8j28G8gcWWlCBlqNHGzlbcHMcP4WbGjadtBoljAOVLWqY4so2xi/uRPmxvxqIveCqX5Qjo7qyNUgv76brho17zEhSp3Fi2w=


I think I figured it out.

I first add a "virtual" attribute:

<init-param>
<param-name>subjectVirtualAttribute_0_nameAndId</param-name>
<param-value>${subject.getAttributeValue('givenName')}
${subject.getAttributeValue('sn')},
${subject.getAttributeValue('uid')}</param-value>
</init-param>

Then, I can use that as the actual "Name_AttributeType":

<init-param>
<param-name>Name_AttributeType</param-name>
<param-value>nameAndId</param-value>
</init-param>

It gives me the information I want in the list.

Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College

----- Original Message -----
From: "waldbiec"
<>
To: "Chris Hyzer"
<>
Cc: "grouper-users"
<>
Sent: Monday, November 13, 2017 3:15:30 PM
Subject: Re: Grouper UI - set subject columns in all relevant
search/membership lists

Chris,

I see that if I set the "Name_AttributeType" to a `displayName` attribute, I
can get the full name of an account to show up (required restarting my Tomcat
container).
Is there some way you can put an expression in the name that combines
attributes? I'd like to include the user ID in the list. E.g. the entry for
my name should look something like:

Carl Waldbieser - waldbiec

Can I use a JEXL expression or something?

Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College

----- Original Message -----
From: "Chris Hyzer"
<>
To: "Chris Hyzer"
<>,
"waldbiec"
<>
Cc: "grouper-users"
<>
Sent: Monday, November 13, 2017 1:56:34 PM
Subject: RE: Grouper UI - set subject columns in all relevant
search/membership lists

Btw, by default if you have the subjectName and description mapped correctly
you don’t have to adjust what the UI displays... it will automatically
display the name as whats on screen and the description as the search result
and tooltip...

Thanks
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Hyzer, Chris
Sent: Monday, November 13, 2017 1:35 PM
To: Waldbieser, Carl
<>
Cc: grouper-users
<>
Subject: [grouper-users] RE: Grouper UI - set subject columns in all relevant
search/membership lists

Jdbc2 has the best searching my opinion, but the jndi one does ok too. yes,
you need to adjust your sources.xml. There is a 2.3 patch for a subject
source diagnostics tester:

https://spaces.internet2.edu/display/Grouper/Grouper+subject+API+diagnostics+in+UI

Otherwise you can test with GSH, just edit the file and run:

https://spaces.internet2.edu/pages/viewpage.action?pageId=14517859

grouperSession = GrouperSession.startRootSession();
SubjectFinder.findAll(searchString, source);
SubjectFinder.findByIdAndSource(id, source, exceptionIfNull);
SubjectFinder.findByIdentifierAndSource(identifier, source, exceptionIfNull);
SubjectFinder.findByIdAndSource("jsmith", "jdbc", true);
SubjectFinder.findByIdOrIdentifierAndSource(idOrIdentifier, source,
exceptionIfNull);
SubjectFinder.findByIdOrIdentifierAndSource("jsmith", "jdbc", true);


Then look at a subject, getId(), getName(), getDescription(), and
attributes...

Thanks
Chris

-----Original Message-----
From: Waldbieser, Carl
[mailto:]

Sent: Monday, November 13, 2017 12:30 PM
To: Hyzer, Chris
<>
Cc: grouper-users
<>
Subject: Re: Grouper UI - set subject columns in all relevant
search/membership lists

Chris,

I take it that I need to manipulate my `sources.xml` to make this happen?
Do I need to use the JDBCC2 source, or will the LdapSourceAdapter be able to
do this, too?

Where I am getting hung up is that I'm not entirely sure what the structure
of the source adapters is allowed to actually look like, and what stanzas
will be translated into something meaningful.

Also, is this something I can test in the GSH somehow, or do I need to update
a WAR file and restart a container to test each change?

Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College

----- Original Message -----
From: "Chris Hyzer"
<>
To: "waldbiec"
<>,
"grouper-users"
<>
Sent: Monday, November 13, 2017 11:47:58 AM
Subject: RE: Grouper UI - set subject columns in all relevant
search/membership lists

I use jdbc2 source at Penn, here is a description

https://spaces.internet2.edu/display/Grouper/Penn+subject+source+JDBC2+example

thanks
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Waldbieser, Carl
Sent: Sunday, November 12, 2017 2:06 PM
To: grouper-users
<>
Subject: [grouper-users] Grouper UI - set subject columns in all relevant
search/membership lists


What is the recommended way to add additional subject attribute columns to
all the relevant search result and membership lists.

Currently, we are only showing the subject Identifier. This shows up as
"Entity name" on the membership list for a group or in the "Name" column for
a search result.

I'd really like to show the first name, last name, and subject ID in the
columns instead of just the subject ID.

In the detail widget for a subject, I can see these attributes, but I'd like
to see them in the list views, too.

Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College



Archive powered by MHonArc 2.6.19.

Top of Page