Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Grouper xmlExport/import

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Grouper xmlExport/import


Chronological Thread 
  • From: Francis Bouchard-Boulianne <>
  • To: "" <>
  • Subject: [grouper-users] RE: Grouper xmlExport/import
  • Date: Tue, 14 Nov 2017 17:29:05 +0000
  • Accept-language: fr-CA, en-CA, en-US
  • Ironport-phdr: 9a23:C7MmBxWETL9O4VUXlqy8aR0InbDV8LGtZVwlr6E/grcLSJyIuqrYZRSFvKdThVPEFb/W9+hDw7KP9fuxCSpYud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Lxi6txndutULioZ+N6g9zQfErGFVcOpM32NoIlyTnxf45siu+ZNo7jpdtfE8+cNeSKv2Z6s3Q6BWAzQgKGA1+dbktQLfQguV53sTSXsZnxxVCAXY9h76X5Pxsizntuph3SSRIMP7QawoVTmk8qxkTwPlhDkDOjM56W3bls99h79frB+huxBzxojZa5yXOvVjZKPQZdMUS3RcUMZNWSJPAY28YIkOD+UdMulVtJPyq0cSoRakGQWgGP7jxzlVjXH2x6061OEhHBnG0gw6Bd0OtmjbrNTuNKwPTO21y7TIwinDb/xMwzfy9ZHEfw0mofGRWbJwcNDeyU8pFwzbk16drozrPymP2eQLr2eb7vFgWfiyhm4gtgF+vjivyd02iobUn44Y11fE9Th9wIY0P9K4Tkh7bsC/HZReqi+aN5V5Qtk5TGFyvyY6zb4GtoChcCcW0psq3hjSYOGJfYiP5xLsTueRITFgiXJkfrK/mwi98VKmyuLiSsm4zkxGoTRYndnRrnwCzR/T5dKdRvt45Ues3yuE2QPL6uxcPEw5m7TXJ4Q/zrItipYfq1rPEyH3lUnskaOaa10o9vWm5uj5eLnquIKQO5Nuhgz8KKgih9KzDfg+PwMTRWaU4/6826fm/UDhQLVFkPk2kq7BvZDBIMQbura5Aw5L3oo59ha/FDem38oCnXYcNlJFfxWHj4v3NF3UPP/3F++zg1WqkDh12/DLJqDtD5vTInTZjrvtYKpx51RCxAc9zN1T/Y9YBqwZLPL2QEDxtdjYDhEjMwyzxubqENVz1pkEVmKJHqCZMbjSvUWV6+IoPumDeI8VtyznK/c4/vLjkHg5mUIZfamox5QXbna4Eep9LkWEenrsgskOEX0RsQokS+zqj16CXiBJa3muRa0w/is7B56+DYffWoCth6SM3CihHp1Re2BGEk6DEW3xe4WZQPcDdjiSItR6nzwAVLihUJMh1QqwuAPgyrpnKPbU9TMCtZLlytd1+/PfmQss+jNpEsTOm12KGit7hGQVXzIsmb1krFZm4laFzaVihfFET5pe6+4DGlM1L5nB1+FgTs3pVxjaVtaPVFu8RNi6W3c8Qs9nkPEUZEMoNc+riBvCxGKABKIel7WRCNke9b/Y3nH3Ics1n1jc3a8qjkJgaMxSPm2vnKI63Q/OA4/AlUOUv5uRdakG1jTK82SOi2GH6hILGDVsWLnICChMLnDdqs70sx6aQg==

Hi,

 

I tried reimporting the exported gsh and I have problems. The export adds variable declaration to the gsh and this seems to bug gsh (using version grouper 2.3.0 with groovyshell 2.4.11 jvm 1.8.0_XXX).

 

I am doing this :

new XmlExportGshScript().assignStemName("udes").assignFileNameToWriteTo(fileName).exportGsh()

 

and it produces :

*GrouperSession* grouperSession = GrouperSession.startRootSession();

long gshTotalObjectCount = 0L;

long gshTotalChangeCount = 0L;

long gshTotalErrorCount = 0L;

*StemSave* stemSave = new StemSave(grouperSession).assignName("udes:etc").assignCreateParentStemsIfNotExist(true).assignDisplayName("udes:etc");

stem = stemSave.save();

gshTotalObjectCount++;

if (stemSave.getSaveResultType() != SaveResultType.NO_CHANGE) { System.out.println("Made change for stem: " + stem.getName()); gshTotalChangeCount++;}

*StemSave* stemSave = new StemSave(grouperSession).assignName("udes:etc:defs").assignCreateParentStemsIfNotExist(true).assignDisplayName("udes:etc:defs");

stem = stemSave.save();

 

If I remove the declaration (between *) it works. But is it not very convenient.

I also tried the interpreterMode preference without success.

 

To load the backup:

Groovy :000> :load /path/to/file

Or

Shell> ./gsh /path/to/file

Any ideas to fix this ?

 

Thanks.

Francis

 

 

De : [mailto:] De la part de Francis Bouchard-Boulianne
Envoyé : 6 novembre 2017 12:50
À : Hyzer, Chris <>;
Objet : [grouper-users] RE: Grouper xmlExport/import

 

Cet expéditeur n’a pas passé les vérifications relatives à la détection des fraudes et n’est peut-être pas la personne qu’il prétend être. En savoir plus sur l’ usurpation d’identités

Commentaires

Thanks, this is exactly what I was looking for.

 

Regards.

 

Francis

 

De : [] De la part de Hyzer, Chris
Envoyé : 1 novembre 2017 14:50
À : Francis Bouchard-Boulianne <>;
Objet : [grouper-users] RE: Grouper xmlExport/import

 

Are you talking about the grouper_members table?  Yes, it puts them in that table but doesn’t end up using them.

 

You could try using this instead…

 

https://spaces.internet2.edu/display/Grouper/Grouper+export+to+a+GSH+script

 

Thanks

Chris

 

From: [] On Behalf Of Francis Bouchard-Boulianne
Sent: Wednesday, November 01, 2017 2:01 PM
To:
Subject: [grouper-users] Grouper xmlExport/import

 

Hi all,

 

We’re pretty new to grouper and wanted to reinstall a « clean » dev instance. I thouth I could use the export/import feature for our main stem. So I did :

gsh –xmlexport –stems udes -excludeAudits …

 

We are configured with two external database subjectSource and a CAS login to the admins UI.

The problem seems that i twill export ALL subjects from ou sources and try to import them as local subjects (in the subject table).

 

Am I not understanding the utility of the export/import ?

https://spaces.internet2.edu/display/Grouper/Import-Export

 

Am I using the wrong tool ?

 

___________________________________________

Francis Bouchard B.

Analyse – Analyse et assurance qualité - division Systèmes d’information.

Service des technologies de l’information

Université de Sherbrooke

 

Tél. : 819 821-8000, poste 63465

Courriel :

 




Archive powered by MHonArc 2.6.19.

Top of Page