Skip to content

Commit

Permalink
gte update for 201.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wgthom committed May 31, 2019
1 parent 9ef07c2 commit 7bb5970
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions ex201/ex201.3.end/container_files/seed-data/bootstrap.gsh
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -36,3 +40,4 @@ attributeAssignSave.addValue("pspng_affiliations");
attributeAssignSave.save();

//ex201.3.5
// nothing to do here

0 comments on commit 7bb5970

Please sign in to comment.