Class StemUniqueNameCaseInsensitiveHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.StemHooks
edu.internet2.middleware.grouper.hooks.examples.StemUniqueNameCaseInsensitiveHook
built in hook to grouper, which is turned on when it is configured in the grouper.properties. folder names will case insensitive be unique set that with grouper.properties: hooks.stem.class = edu.internet2.middleware.grouper.hooks.examples.StemUniqueNameCaseInsensitiveHook or grouperHook.StemUniqueNameCaseInsensitiveHook.autoRegister = true (default)
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.hooks.StemHooks
METHOD_STEM_POST_COMMIT_DELETE, METHOD_STEM_POST_COMMIT_INSERT, METHOD_STEM_POST_COMMIT_UPDATE, METHOD_STEM_POST_DELETE, METHOD_STEM_POST_INSERT, METHOD_STEM_POST_UPDATE, METHOD_STEM_PRE_DELETE, METHOD_STEM_PRE_INSERT, METHOD_STEM_PRE_UPDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
see if this is configured in the grouper.properties, if so, register this hookvoid
stemPreInsert
(HooksContext hooksContext, HooksStemBean preInsertBean) called right before a stem insertvoid
stemPreUpdate
(HooksContext hooksContext, HooksStemBean preUpdateBean) called right before a stem updatestatic void
Methods inherited from class edu.internet2.middleware.grouper.hooks.StemHooks
stemPostCommitDelete, stemPostCommitInsert, stemPostCommitUpdate, stemPostDelete, stemPostInsert, stemPostUpdate, stemPreDelete
-
Field Details
-
VETO_STEM_UNIQUE_NAME_CASE_INSENSITIVE
- See Also:
-
VETO_STEM_UNIQUE_ID_CASE_INSENSITIVE
- See Also:
-
-
Constructor Details
-
StemUniqueNameCaseInsensitiveHook
public StemUniqueNameCaseInsensitiveHook()
-
-
Method Details
-
registerHookIfNecessary
public static void registerHookIfNecessary()see if this is configured in the grouper.properties, if so, register this hook -
stemPreInsert
Description copied from class:StemHooks
called right before a stem insert- Overrides:
stemPreInsert
in classStemHooks
- See Also:
-
verifyCaseInsensitiveName
- Parameters:
stem
-
-
stemPreUpdate
Description copied from class:StemHooks
called right before a stem update- Overrides:
stemPreUpdate
in classStemHooks
- See Also:
-
clearHook
public static void clearHook()
-