Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Way to update subjects via GSH

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Way to update subjects via GSH


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Michael McManaman <>, "" <>
  • Subject: RE: [grouper-users] Way to update subjects via GSH
  • Date: Fri, 15 Apr 2016 16:57:12 +0000
  • Accept-language: en-US
  • Authentication-results: buffalo.edu; dkim=none (message not signed) header.d=none;buffalo.edu; dmarc=none action=none header.from=isc.upenn.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

RegistrySubject registrySubject =
GrouperDAOFactory.getFactory().getRegistrySubject().find("user1a", "person",
true);
registrySubject.setName("New name");
HibernateSession.byObjectStatic().update(registrySubject);

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


[mailto:]
On Behalf Of Michael McManaman
Sent: Friday, April 15, 2016 11:52 AM
To:

Subject: [grouper-users] Way to update subjects via GSH

Hello everybody.

I've been bulk loading users (subjects?) from a flat file with gsh
successfully.
Basically I've been using the addSubject command; and the flat-file
datafeed I've been using has a default value of 'NA' for users whose
names are not provided.

So a lot of the adds look something like this:

addSubject("user1a","person","NA")

Now I have an updated datafeed with updated user names, so I can replace
the "NA" with a real value.

Is there a way I can bulk update the subjects I initially created with a
name value of "NA"?

I may be missing something in the documentation, but i'm not seeing a
way to do this via gsh...?

Any help would be much appreciated.
Mike





Archive powered by MHonArc 2.6.16.

Top of Page