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: Michael McManaman <>
  • To: "Hyzer, Chris" <>, "" <>
  • Subject: Re: [grouper-users] Way to update subjects via GSH
  • Date: Fri, 15 Apr 2016 13:31:28 -0400

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