Class UniqueObjectGroupHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.GroupHooks
edu.internet2.middleware.grouper.hooks.examples.UniqueObjectGroupHook
When groups are created or saved, make sure there are no name conflicts with other object types
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
make sure no groups by this name existvoid
groupPreInsert
(HooksContext hooksContext, HooksGroupBean preInsertBean) called right before a group insertvoid
groupPreUpdate
(HooksContext hooksContext, HooksGroupBean preUpdateBean) called right before a group updateMethods inherited from class edu.internet2.middleware.grouper.hooks.GroupHooks
groupPostCommitDelete, groupPostCommitInsert, groupPostCommitUpdate, groupPostDelete, groupPostInsert, groupPostUpdate, groupPreDelete
-
Constructor Details
-
UniqueObjectGroupHook
public UniqueObjectGroupHook()
-
-
Method Details
-
groupPreUpdate
Description copied from class:GroupHooks
called right before a group update -
groupPreInsert
Description copied from class:GroupHooks
called right before a group insert -
assertNoGroupsWithThisNameExist
make sure no groups by this name exist- Parameters:
name
-
-