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 18:21:44 +0000
  • Accept-language: en-US
  • Authentication-results:; dkim=none (message not signed) header.d=none;; dmarc=none action=none;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

I added these to the Grouper GSH wiki. Yeah, look through code or ask the
list and we can add to the wiki :)

-----Original Message-----
From: Michael McManaman

Sent: Friday, April 15, 2016 1:31 PM
To: Hyzer, Chris

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

Thank you again.
Are the methods for these objects detailed in the docs anywhere?
I didn't see any notes on them, but then again, I'm wiki-deficient.

Or do I need to pick though the code?

On 04/15/2016 12:57 PM, Hyzer, Chris wrote:
> 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