grouper-users - Re: [grouper-users] customizing subject displayname
Subject: Grouper Users - Open Discussion List
List archive
- From: Rahul Doshi <>
- To: "" <>
- Subject: Re: [grouper-users] customizing subject displayname
- Date: Mon, 11 Aug 2014 16:21:02 +0000
- Accept-language: en-US
I found a way to customize displayName of subject based on virtual attribute configured in sources.xml. I had to modify method public
static String convertSubjectToLabelHtmlConfigured2(Subject
subject) in GrouperUiUtils.java file.
I replaced line String label =
subject.getName(); with below piece of code.
String label = subject.getAttributeValue("displayName0");
if (StringUtils.isBlank(label)) {
label = subject.getName(); }
This is just a workaround and ideally would like grouper to provide ability to specify virtual attribute that will be used for subject displayName in grouper. That way we would not have to do any customizations in future upgrades.
Thanks, Rahul
From: Rahul Doshi <>
Date: Wednesday, August 6, 2014 at 9:41 AM To: "" <> Subject: Re: [grouper-users] customizing subject displayname Just checking if anyone has suggestion on how to customize displayName of subject in search results.
Thanks,
Rahul
From: Rahul Doshi <>
Date: Friday, August 1, 2014 at 10:35 AM To: "" <> Subject: [grouper-users] customizing subject displayname Hello,
When I login to new grouper 2.2.0 UI it shows "Logged in as Rahul Doshi ”. I believe displayname of the logged in subject is coming from cn attribute in our ldap subject source as
I have configured setting below in sources.xml. I tried configuring setting to use virtual attribute to show displayname and status something like "Rahul Doshi [Active]"
but that didn’t work. What is the best way to achieve that? I can see the virtual attribute correctly in subject summary.
<init-param>
<param-name>Name_AttributeType</param-name> <param-value>cn</param-value> </init-param> <init-param> <param-name>Description_AttributeType</param-name> <param-value>cn</param-value> </init-param>
Thanks, Rahul |
- [grouper-users] customizing subject displayname, Rahul Doshi, 08/01/2014
- <Possible follow-up(s)>
- Re: [grouper-users] customizing subject displayname, Rahul Doshi, 08/06/2014
- Re: [grouper-users] customizing subject displayname, Rahul Doshi, 08/11/2014
Archive powered by MHonArc 2.6.16.