diff --git a/ex201/ex201.3.end/container_files/seed-data/bootstrap.gsh b/ex201/ex201.3.end/container_files/seed-data/bootstrap.gsh index c93caa7..5af8a0b 100644 --- a/ex201/ex201.3.end/container_files/seed-data/bootstrap.gsh +++ b/ex201/ex201.3.end/container_files/seed-data/bootstrap.gsh @@ -1,29 +1,33 @@ gs = GrouperSession.startRootSession() +delStem("201.3.1") +addRootStem("201.3.end", "201.3.end") //ex201.3.1 addStem("app", "eduPersonAffiliation", "eduPersonAffiliation"); -addGroup("app:eduPersonAffiliation", "ePA_student", "ePA_student"); -addGroup("app:eduPersonAffiliation", "ePA_staff", "ePA_staff"); -addGroup("app:eduPersonAffiliation", "ePA_alum", "ePA_alum"); -addGroup("app:eduPersonAffiliation", "ePA_member", "ePA_member"); -addGroup("app:eduPersonAffiliation", "ePA_affiliate", "ePA_affiliate"); -addGroup("app:eduPersonAffiliation", "ePA_employee", "ePA_employee"); -addGroup("app:eduPersonAffiliation", "ePA_library-walk-in", "ePA_library-walk-in"); +addStem("app:eduPersonAffiliation", "service", "service"); +addStem("app:eduPersonAffiliation:service", "policy", "policy"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_student", "ePA_student"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_staff", "ePA_staff"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_alum", "ePA_alum"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_member", "ePA_member"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_affiliate", "ePA_affiliate"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_employee", "ePA_employee"); +addGroup("app:eduPersonAffiliation:service:policy", "ePA_library-walk-in", "ePA_library-walk-in"); //ex201.3.2 -addMember("app:eduPersonAffiliation:ePA_student", "ref:student:students"); +addMember("app:eduPersonAffiliation:service:policy:ePA_student", "ref:student:students"); //ex201.3.3 -addMember("app:eduPersonAffiliation:ePA_member", "app:eduPersonAffiliation:ePA_student"); -addMember("app:eduPersonAffiliation:ePA_member", "app:eduPersonAffiliation:ePA_staff"); -addMember("app:eduPersonAffiliation:ePA_member", "app:eduPersonAffiliation:ePA_alum"); -addMember("app:eduPersonAffiliation:ePA_member", "app:eduPersonAffiliation:ePA_affiliate"); -addMember("app:eduPersonAffiliation:ePA_member", "app:eduPersonAffiliation:ePA_employee"); +addMember("app:eduPersonAffiliation:service:policy:ePA_member", "app:eduPersonAffiliation:service:policy:ePA_student"); +addMember("app:eduPersonAffiliation:service:policy:ePA_member", "app:eduPersonAffiliation:service:policy:ePA_staff"); +addMember("app:eduPersonAffiliation:service:policy:ePA_member", "app:eduPersonAffiliation:service:policy:ePA_alum"); +addMember("app:eduPersonAffiliation:service:policy:ePA_member", "app:eduPersonAffiliation:service:policy:ePA_affiliate"); +addMember("app:eduPersonAffiliation:service:policy:ePA_member", "app:eduPersonAffiliation:service:policy:ePA_employee"); //ex201.3.4 //Assign the PSPNG attribute for the standard groups -group = GroupFinder.findByName(gs, "app:eduPersonAffiliation:ePA_student"); +group = GroupFinder.findByName(gs, "app:eduPersonAffiliation:service:policy:ePA_member"); # Auto create the PSPNG attributes edu.internet2.middleware.grouper.pspng.FullSyncProvisionerFactory.getFullSyncer("pspng_affiliations"); @@ -36,3 +40,4 @@ attributeAssignSave.addValue("pspng_affiliations"); attributeAssignSave.save(); //ex201.3.5 +// nothing to do here \ No newline at end of file