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 # set this to true in grouper.properties to make this case insensitive hook.group.unique.extension.caseInsensitive = true
| Modifier and Type | Field and Description |
|---|---|
static String |
VETO_GROUP_UNIQUE_EXTENSION |
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, groupPreDeletepublic static final String VETO_GROUP_UNIQUE_EXTENSION
public void groupPreInsert(HooksContext hooksContext, HooksGroupBean preInsertBean)
GroupHookspublic static void verifyUniqueExtension(Group group)
group - public void groupPreUpdate(HooksContext hooksContext, HooksGroupBean preUpdateBean)
GroupHooksCopyright © 2016 Internet2. All rights reserved.