Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Include Page
spaceKeyGrouper
pageTitleNavigation

Grouper rules

Have a loader based group, based on certain types of faculty.  The overall group should contain anyone who has ever been in the loader group.  Note, there is no daemon component for this rule yet.

GSH example

Code Block
grouperSession = GrouperSession.startRootSession(); 
overallGroup = GroupFinder.findByName(grouperSession, "penn:library:services:faculty:facultyexpress"); 

attributeAssign = overallGroup.getAttributeDelegate().assignAttribute(RuleUtils.ruleAttributeDefName()).getAttributeAssign();
 
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleActAsSubjectSourceIdName(), "g:isa");
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleActAsSubjectIdName(), "GrouperSystem");
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleCheckOwnerNameName(), "penn:library:services:faculty:facultyexpress_systemOfRecord");
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleCheckTypeName(), RuleCheckType.membershipAdd.name());
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleIfConditionEnumName(), RuleIfConditionEnum.groupHasNoImmediateEnabledMembership.name());
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleThenEnumName(), RuleThenEnum.addMemberToOwnerGroup.name());
attributeAssign.getAttributeValueDelegate().assignValue(RuleUtils.ruleRunDaemonName(), "false");