public class AttributeDefNameAttributeNameValidationHook extends AttributeDefNameHooks
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
Modifier and Type | Field and Description |
---|---|
static String |
TEST_ATTRIBUTE_NAME
for unit tests
|
static String |
TEST_PATTERN
for unit tests
|
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 and Description |
---|
AttributeDefNameAttributeNameValidationHook() |
Modifier and Type | Method and Description |
---|---|
void |
attributeDefNamePreInsert(HooksContext hooksContext,
HooksAttributeDefNameBean preInsertBean)
called right before a attribute insert
|
void |
attributeDefNamePreUpdate(HooksContext hooksContext,
HooksAttributeDefNameBean preUpdateBean)
called right before a attribute update
|
static void |
clearHook() |
static void |
registerHookIfNecessary(boolean addTestValidation)
see if this is configured in the grouper.properties, if so, register this hook
|
attributeDefNamePostCommitDelete, attributeDefNamePostCommitInsert, attributeDefNamePostCommitUpdate, attributeDefNamePostDelete, attributeDefNamePostInsert, attributeDefNamePostUpdate, attributeDefNamePreDelete
public static final String TEST_ATTRIBUTE_NAME
public static final String TEST_PATTERN
public AttributeDefNameAttributeNameValidationHook()
public static void clearHook()
public static void registerHookIfNecessary(boolean addTestValidation)
addTestValidation
- if a test validation should be addedpublic void attributeDefNamePreInsert(HooksContext hooksContext, HooksAttributeDefNameBean preInsertBean)
AttributeDefNameHooks
attributeDefNamePreInsert
in class AttributeDefNameHooks
edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks#attributeDefNamePreInsert(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksGroupBean)
public void attributeDefNamePreUpdate(HooksContext hooksContext, HooksAttributeDefNameBean preUpdateBean)
AttributeDefNameHooks
Copyright © 2016 Internet2. All rights reserved.