Class AttributeDefNameAttributeNameValidationHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
edu.internet2.middleware.grouper.hooks.examples.AttributeDefNameAttributeNameValidationHook
built in hook to grouper, which is turned on when it is configured in the grouper.properties. you can retrict certain attributes of a attribute def name to be within a certain regex
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
for unit testsstatic final String
for unit testsFields 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
static void
registerHookIfNecessary
(boolean addTestValidation) see if this is configured in the grouper.properties, if so, register this hookMethods inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
attributeDefNamePostCommitDelete, attributeDefNamePostCommitInsert, attributeDefNamePostCommitUpdate, attributeDefNamePostDelete, attributeDefNamePostInsert, attributeDefNamePostUpdate, attributeDefNamePreDelete
-
Field Details
-
TEST_ATTRIBUTE_NAME
for unit tests- See Also:
-
TEST_PATTERN
for unit tests- See Also:
-
-
Constructor Details
-
AttributeDefNameAttributeNameValidationHook
public AttributeDefNameAttributeNameValidationHook()
-
-
Method Details
-
clearHook
public static void clearHook() -
registerHookIfNecessary
public static void registerHookIfNecessary(boolean addTestValidation) see if this is configured in the grouper.properties, if so, register this hook- Parameters:
addTestValidation
- if a test validation should be added
-
attributeDefNamePreInsert
public void attributeDefNamePreInsert(HooksContext hooksContext, HooksAttributeDefNameBean preInsertBean) Description copied from class:AttributeDefNameHooks
called right before a attribute insert- Overrides:
attributeDefNamePreInsert
in classAttributeDefNameHooks
- See Also:
-
edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks#attributeDefNamePreInsert(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksGroupBean)
-
attributeDefNamePreUpdate
public void attributeDefNamePreUpdate(HooksContext hooksContext, HooksAttributeDefNameBean preUpdateBean) Description copied from class:AttributeDefNameHooks
called right before a attribute update
-