Include Page | ||||
---|---|---|---|---|
|
Feature Grouper rules are available in Grouper v2.0 +and above.
...
Code Block |
---|
//add a rule on stem:a saying if you are out of stem:b, then remove from stem:a AttributeAssign attributeAssign = groupA .getAttributeDelegate().assignAttribute(RuleUtils.ruleAttributeDefName()).getAttributeAssign(); attributeAssign.getAttributeValueDelegate().assignValue( RuleUtils.ruleActAsSubjectSourceIdName(), "g:isa"); attributeAssign.getAttributeValueDelegate().assignValue( RuleUtils.ruleActAsSubjectIdName(), "GrouperSystem"); attributeAssign.getAttributeValueDelegate().assignValue( RuleUtils.ruleCheckOwnerNameName(), "stem:b"); attributeAssign.getAttributeValueDelegate().assignValue( RuleUtils.ruleCheckTypeName(), RuleCheckType.membershipRemove.name()); attributeAssign.getAttributeValueDelegate().assignValue( RuleUtils.ruleIfConditionEnumName(), RuleConditionEnum.thisGroupHasImmediateMember.name()); attributeAssign.getAttributeValueDelegate().assignValue( RuleUtils.ruleThenElName(), "${ruleElUtils.removeMemberFromGroupId(ownerGroupId, memberId)}"); |
...
GSH
Print out the rules for an owner in GSH:
...
Code Block |
---|
gsh 0% new GrouperEmail().setTo("something@somewhere.edu").setBody("email body").setSubject("email subject").send(); |
...
Extended EL API
There is a special group which has access to more objects in EL:
...