Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] How export multivalued attribute ldap in LiteUI + Sort with Accents

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] How export multivalued attribute ldap in LiteUI + Sort with Accents


Chronological Thread 
  • From: Wallaert-Taquet Brigitte <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] How export multivalued attribute ldap in LiteUI + Sort with Accents
  • Date: Thu, 24 Nov 2011 14:25:36 +0100

Hello,

It works, you can commit to SVN, thank you !

Also, someone here tells me that we have problems with sort : the sort doesn't take care of the accents. In the example joined, "Sébastien Deconinck" should appear before "Sophie Gallina".

Thanks for help !

Brigitte

Le 23/11/2011 18:41, Chris Hyzer a écrit :
Currently it doesn't work that way, I opened a jira, and it has a code tweak
you could try if you want the multi-valued attribute to export as comma
separated:

https://bugs.internet2.edu/jira/browse/GRP-710

If you do this and it works, let me know and I can commit to SVN...

Should need to change: SimpleMembershipUpdateImportExport.java

FROM:

//lets see what we can get from the subject
for (int i=0;i<headers.length;i++) {
String header = headers[i];
if ("name".equalsIgnoreCase(header)) {
result[i] = subject.getName();
} else if ("description".equalsIgnoreCase(header)) {
result[i] = subject.getDescription();
} else if ("screenLabel".equalsIgnoreCase(header)) {
result[i] =
GrouperUiUtils.convertSubjectToLabelConfigured(subject);
} else if (isAttribute[i]) {
result[i] = subject.getAttributeValue(header);
}
}


TO:

//lets see what we can get from the subject
for (int i=0;i<headers.length;i++) {
String header = headers[i];
if ("name".equalsIgnoreCase(header)) {
result[i] = subject.getName();
} else if ("description".equalsIgnoreCase(header)) {
result[i] = subject.getDescription();
} else if ("screenLabel".equalsIgnoreCase(header)) {
result[i] =
GrouperUiUtils.convertSubjectToLabelConfigured(subject);
} else if (isAttribute[i]) {
result[i] = subject.getAttributeValueOrCommaSeparated(header);
}
}

Thanks,
Chris

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


[mailto:]
On Behalf Of Wallaert-Taquet Brigitte
Sent: Wednesday, November 23, 2011 11:51 AM
To:

Subject: [grouper-users] How export multivalued attribute ldap in LiteUI

Hello,

My question is in the subject : I put a multivalued attribute
(ustlDepartement) in my media.properties :
simpleMembershipUpdate.exportAllSubjectFields=name, mail, ustlDepartement
but I obtain only one value of this attribute in the export file.

Anyone has an idea ?

Thanks for help.



--
Brigitte Wallaert-Taquet
Ingénieure d'études
Chargée d'étude
Espace collaboratif de Documents
Université Lille1
Sciences et Technologies

Attachment: SortAndAccents.png
Description: PNG image




Archive powered by MHonArc 2.6.16.

Top of Page