Class GroupUniqueExtensionInFoldersHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.GroupHooks
edu.internet2.middleware.grouper.hooks.examples.GroupUniqueExtensionInFoldersHook
built in hook to grouper, which is turned on when it is configured in the grouper.properties. extensions in groups will be unique in a list of folders (or subfolders) set that with grouper.properties: groupUniqueExtensionInFolderHook.someConfigId.folderNames = a:b:c,d:e:f groupUniqueExtensionInFolderHook.someConfigId2.folderNames = a:b:c,d:e:f # set this to true in grouper.properties to make this case insensitive groupUniqueExtensionInFolderHookCaseInsensitive = true
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
You cannot use this extension since it is in use with another related group (in this folder or another related folder):Fields inherited from class edu.internet2.middleware.grouper.hooks.GroupHooks
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
never null.void
groupPreInsert
(HooksContext hooksContext, HooksGroupBean preInsertBean) called right before a group insertvoid
groupPreUpdate
(HooksContext hooksContext, HooksGroupBean preUpdateBean) called right before a group updatestatic boolean
static void
see if this is configured in the grouper.properties, if so, register this hookstatic void
verifyUniqueExtension
(Group group) Methods inherited from class edu.internet2.middleware.grouper.hooks.GroupHooks
groupPostCommitDelete, groupPostCommitInsert, groupPostCommitUpdate, groupPostDelete, groupPostInsert, groupPostUpdate, groupPreDelete
-
Field Details
-
VETO_GROUP_UNIQUE_EXTENSION_IN_FOLDER
You cannot use this extension since it is in use with another related group (in this folder or another related folder):- See Also:
-
-
Constructor Details
-
GroupUniqueExtensionInFoldersHook
public GroupUniqueExtensionInFoldersHook()
-
-
Method Details
-
hasConfiguredFolders
public static boolean hasConfiguredFolders()- Returns:
-
groupPreInsert
Description copied from class:GroupHooks
called right before a group insert -
configIdToSetOfFolderNames
never null. key is config id _ true|false (for if case sensitive or not- Returns:
-
verifyUniqueExtension
- Parameters:
group
-
-
groupPreUpdate
Description copied from class:GroupHooks
called right before a group update -
clearHook
public static void clearHook() -
registerHookIfNecessary
public static void registerHookIfNecessary()see if this is configured in the grouper.properties, if so, register this hook
-