Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update 401.3 container to match current slides; remove unneeded inter…
…mediate containers
credman committed Jan 28, 2021
1 parent 617ea70 commit 94e6e18
Showing 26 changed files with 19 additions and 387 deletions.
29 changes: 0 additions & 29 deletions ex401/ex401.3.2/Dockerfile

This file was deleted.

60 changes: 0 additions & 60 deletions ex401/ex401.3.2/container_files/seed-data/bootstrap.gsh

This file was deleted.

Empty file.
Empty file.
29 changes: 0 additions & 29 deletions ex401/ex401.3.3/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions ex401/ex401.3.3/container_files/seed-data/bootstrap.gsh

This file was deleted.

Empty file.
Empty file.
30 changes: 0 additions & 30 deletions ex401/ex401.3.4/Dockerfile

This file was deleted.

79 changes: 0 additions & 79 deletions ex401/ex401.3.4/container_files/attribute-filter.xml

This file was deleted.

19 changes: 0 additions & 19 deletions ex401/ex401.3.4/container_files/seed-data/bootstrap.gsh

This file was deleted.

Empty file.
Empty file.
29 changes: 0 additions & 29 deletions ex401/ex401.3.5/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions ex401/ex401.3.5/container_files/seed-data/bootstrap.gsh

This file was deleted.

Empty file.
Empty file.
29 changes: 0 additions & 29 deletions ex401/ex401.3.6/Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions ex401/ex401.3.6/container_files/seed-data/bootstrap.gsh

This file was deleted.

Empty file.
Empty file.
29 changes: 0 additions & 29 deletions ex401/ex401.3.7/Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions ex401/ex401.3.7/container_files/seed-data/bootstrap.gsh

This file was deleted.

Empty file.
Empty file.
22 changes: 19 additions & 3 deletions ex401/ex401.3.end/container_files/seed-data/bootstrap.gsh
@@ -20,7 +20,7 @@ mgr_group = addGroup(security.name, mgr_group_name, mgr_group_name);
view_group_name = "${app_extension}Readers";
view_group = addGroup(security.name, view_group_name, view_group_name);

addGroup("app:board_effect:service:policy", "board_effect_access", "board_effect_access");
access_policy_group = addGroup("app:board_effect:service:policy", "board_effect_access", "board_effect_access");
addGroup("app:board_effect:service:policy", "board_effect_access_allow", "board_effect_access_allow");
addGroup("app:board_effect:service:policy", "board_effect_access_deny", "board_effect_access_deny");
addComposite("app:board_effect:service:policy:board_effect_access", CompositeType.COMPLEMENT, "app:board_effect:service:policy:board_effect_access_allow", "app:board_effect:service:policy:board_effect_access_deny");
@@ -31,6 +31,18 @@ addGroup("app:board_effect:service:policy", "workroom_finance_allow", "workroom_
addGroup("app:board_effect:service:policy", "workroom_finance_deny", "workroom_finance_deny");
addComposite("app:board_effect:service:policy:workroom_finance", CompositeType.COMPLEMENT, "app:board_effect:service:policy:workroom_finance_allow", "app:board_effect:service:policy:workroom_finance_deny");
addMember("app:board_effect:service:policy:board_effect_access_allow", "app:board_effect:service:policy:workroom_finance");
addMember("app:board_effect:service:policy:workroom_finance_allow", "bthompson392");


// Assign PSPNG `provision_to` attribute to `https://college.boardeffect.com/` with a value of `pspng_entitlements`.
edu.internet2.middleware.grouper.pspng.FullSyncProvisionerFactory.getFullSyncer("pspng_entitlements");
pspngAttribute = AttributeDefNameFinder.findByName("etc:pspng:provision_to", true);
AttributeAssignSave attributeAssignSave = new AttributeAssignSave(gs).assignPrintChangesToSystemOut(true);
attributeAssignSave.assignAttributeDefName(pspngAttribute);
attributeAssignSave.assignOwnerGroup(access_policy_group);
attributeAssignSave.addValue("pspng_entitlements");
attributeAssignSave.save();


// 401.3.3 nothing to do
// 401.3.4 nothing to do
@@ -66,14 +78,17 @@ attribValueDelegate.assignValue(RuleUtils.ruleThenEnumName(), RuleThenEnum.assig
attribValueDelegate.assignValue(RuleUtils.ruleThenEnumArg0Name(), numDays.toString());
attribValueDelegate.assignValue(RuleUtils.ruleThenEnumArg1Name(), "T");

// 401.3.7
// 401.3.7 (slides removed)
/*
addStem("ref", "role", "role");
addGroup("ref:role", "president_assistant", "president_assistant");
addMember("ref:role:president_assistant", "amartinez410");
addMember("app:board_effect:security:board_effectUpdaters", "ref:role:president_assistant");
delMember("app:board_effect:security:board_effectAdmins", "amartinez410");
*/

// 401.3.8
// 401.3.8 (slides removed)
/*
addStem("ref", "board", "board");
group = GroupFinder.findByName(gs, "app:board_effect:service:ref:finance_committee", true);
stem = StemFinder.findByName(gs, "ref:board", true);
@@ -91,4 +106,5 @@ boardeffectUpdaters = GroupFinder.findByName(gs, "app:board_effect:security:boar
revokePriv("ref:board:finance_committee", boardeffectAdmins.toSubject().id, AccessPrivilege.ADMIN);
revokePriv("ref:board:finance_committee", boardeffectUpdaters.toSubject().id, AccessPrivilege.UPDATE);
revokePriv("ref:board:finance_committee", boardeffectUpdaters.toSubject().id, AccessPrivilege.READ);
*/

0 comments on commit 94e6e18

Please sign in to comment.