public class GroupUniqueExtensionHook extends GroupHooks
built in hook to grouper, which is turned on when it is configured in the grouper.properties. extensions in groups will be unique, and optionally you can resolve any subject to make sure the extension is not a netid or whatever set that with grouper.properties: hooks.group.class = edu.internet2.middleware.grouper.hooks.examples.GroupUniqueExtensionHook groupUniqueExtensionHook.resolveSubjectByIdOrIdentifier = true
METHOD_GROUP_POST_COMMIT_DELETE, METHOD_GROUP_POST_COMMIT_INSERT, METHOD_GROUP_POST_COMMIT_UPDATE, METHOD_GROUP_POST_DELETE, METHOD_GROUP_POST_INSERT, METHOD_GROUP_POST_UPDATE, METHOD_GROUP_PRE_DELETE, METHOD_GROUP_PRE_INSERT, METHOD_GROUP_PRE_UPDATE
Constructor and Description |
---|
GroupUniqueExtensionHook() |
Modifier and Type | Method and Description |
---|---|
void |
groupPreInsert(HooksContext hooksContext,
HooksGroupBean preInsertBean)
called right before a group insert
|
void |
groupPreUpdate(HooksContext hooksContext,
HooksGroupBean preUpdateBean)
called right before a group update
|
static void |
verifyUniqueExtension(Group group) |
groupPostCommitDelete, groupPostCommitInsert, groupPostCommitUpdate, groupPostDelete, groupPostInsert, groupPostUpdate, groupPreDelete
public void groupPreInsert(HooksContext hooksContext, HooksGroupBean preInsertBean)
GroupHooks
public static void verifyUniqueExtension(Group group)
group
- public void groupPreUpdate(HooksContext hooksContext, HooksGroupBean preUpdateBean)
GroupHooks
Copyright © 2016 Internet2. All rights reserved.