Class AttributeDefUniqueNameCaseInsensitiveHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeDefHooks
edu.internet2.middleware.grouper.hooks.examples.AttributeDefUniqueNameCaseInsensitiveHook
built in hook to grouper, which is turned on when it is configured in the grouper.properties. attribute definition will case insensitive be unique set that with grouper.properties: hooks.attributeDef.class = edu.internet2.middleware.grouper.hooks.examples.AttributeDefUniqueNameCaseInsensitiveHook or grouperHook.AttributeDefUniqueNameCaseInsensitiveHook.autoRegister = true (default)
-
Field Summary
FieldsFields inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefHooks
METHOD_ATTRIBUTE_DEF_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_DEF_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_DEF_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_DEF_POST_DELETE, METHOD_ATTRIBUTE_DEF_POST_INSERT, METHOD_ATTRIBUTE_DEF_POST_UPDATE, METHOD_ATTRIBUTE_DEF_PRE_DELETE, METHOD_ATTRIBUTE_DEF_PRE_INSERT, METHOD_ATTRIBUTE_DEF_PRE_UPDATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeDefPreInsert
(HooksContext hooksContext, HooksAttributeDefBean preInsertBean) called right before a attribute insertvoid
attributeDefPreUpdate
(HooksContext hooksContext, HooksAttributeDefBean preUpdateBean) called right before a attribute updatestatic void
static void
see if this is configured in the grouper.properties, if so, register this hookstatic void
verifyCaseInsensitiveName
(AttributeDef attributeDef) Methods inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefHooks
attributeDefPostCommitDelete, attributeDefPostCommitInsert, attributeDefPostCommitUpdate, attributeDefPostDelete, attributeDefPostInsert, attributeDefPostUpdate, attributeDefPreDelete
-
Field Details
-
VETO_ATTRIBUTE_DEF_UNIQUE_NAME_CASE_INSENSITIVE
- See Also:
-
VETO_ATTRIBUTE_DEF_UNIQUE_ID_CASE_INSENSITIVE
- See Also:
-
-
Constructor Details
-
AttributeDefUniqueNameCaseInsensitiveHook
public AttributeDefUniqueNameCaseInsensitiveHook()
-
-
Method Details
-
clearHook
public static void clearHook() -
registerHookIfNecessary
public static void registerHookIfNecessary()see if this is configured in the grouper.properties, if so, register this hook -
attributeDefPreInsert
Description copied from class:AttributeDefHooks
called right before a attribute insert -
verifyCaseInsensitiveName
- Parameters:
attributeDef
-
-
attributeDefPreUpdate
Description copied from class:AttributeDefHooks
called right before a attribute update- Overrides:
attributeDefPreUpdate
in classAttributeDefHooks
- See Also:
-