Class AttributeDefNameUniqueNameCaseInsensitiveHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
edu.internet2.middleware.grouper.hooks.examples.AttributeDefNameUniqueNameCaseInsensitiveHook
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.attributeDefName.class = edu.internet2.middleware.grouper.hooks.examples.AttributeDefNameUniqueNameCaseInsensitiveHook or grouperHook.AttributeDefNameUniqueNameCaseInsensitiveHook.autoRegister = true (default)
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
METHOD_ATTRIBUTE_DEF_NAME_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_DEF_NAME_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_DEF_NAME_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_DEF_NAME_POST_DELETE, METHOD_ATTRIBUTE_DEF_NAME_POST_INSERT, METHOD_ATTRIBUTE_DEF_NAME_POST_UPDATE, METHOD_ATTRIBUTE_DEF_NAME_PRE_DELETE, METHOD_ATTRIBUTE_DEF_NAME_PRE_INSERT, METHOD_ATTRIBUTE_DEF_NAME_PRE_UPDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeDefNamePreInsert
(HooksContext hooksContext, HooksAttributeDefNameBean preInsertBean) called right before a attribute insertvoid
attributeDefNamePreUpdate
(HooksContext hooksContext, HooksAttributeDefNameBean preUpdateBean) called right before a attribute updatestatic void
see if this is configured in the grouper.properties, if so, register this hookstatic void
verifyCaseInsensitiveName
(AttributeDefName attributeDefName) Methods inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
attributeDefNamePostCommitDelete, attributeDefNamePostCommitInsert, attributeDefNamePostCommitUpdate, attributeDefNamePostDelete, attributeDefNamePostInsert, attributeDefNamePostUpdate, attributeDefNamePreDelete
-
Field Details
-
VETO_ATTRIBUTE_DEF_NAME_UNIQUE_NAME_CASE_INSENSITIVE
- See Also:
-
VETO_ATTRIBUTE_DEF_NAME_UNIQUE_ID_CASE_INSENSITIVE
- See Also:
-
-
Constructor Details
-
AttributeDefNameUniqueNameCaseInsensitiveHook
public AttributeDefNameUniqueNameCaseInsensitiveHook()
-
-
Method Details
-
registerHookIfNecessary
public static void registerHookIfNecessary()see if this is configured in the grouper.properties, if so, register this hook -
attributeDefNamePreInsert
public void attributeDefNamePreInsert(HooksContext hooksContext, HooksAttributeDefNameBean preInsertBean) Description copied from class:AttributeDefNameHooks
called right before a attribute insert -
verifyCaseInsensitiveName
- Parameters:
attributeDefName
-
-
attributeDefNamePreUpdate
public void attributeDefNamePreUpdate(HooksContext hooksContext, HooksAttributeDefNameBean preUpdateBean) Description copied from class:AttributeDefNameHooks
called right before a attribute update
-