public class AttributeDefUniqueNameCaseInsensitiveHook extends AttributeDefHooks
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)
| Modifier and Type | Field and Description |
|---|---|
static String |
VETO_ATTRIBUTE_DEF_UNIQUE_ID_CASE_INSENSITIVE |
static String |
VETO_ATTRIBUTE_DEF_UNIQUE_NAME_CASE_INSENSITIVE |
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 and Description |
|---|
AttributeDefUniqueNameCaseInsensitiveHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDefPreInsert(HooksContext hooksContext,
HooksAttributeDefBean preInsertBean)
called right before a attribute insert
|
void |
attributeDefPreUpdate(HooksContext hooksContext,
HooksAttributeDefBean preUpdateBean)
called right before a attribute update
|
static void |
clearHook() |
static void |
registerHookIfNecessary()
see if this is configured in the grouper.properties, if so, register this hook
|
static void |
verifyCaseInsensitiveName(AttributeDef attributeDef) |
attributeDefPostCommitDelete, attributeDefPostCommitInsert, attributeDefPostCommitUpdate, attributeDefPostDelete, attributeDefPostInsert, attributeDefPostUpdate, attributeDefPreDeletepublic static final String VETO_ATTRIBUTE_DEF_UNIQUE_NAME_CASE_INSENSITIVE
public static final String VETO_ATTRIBUTE_DEF_UNIQUE_ID_CASE_INSENSITIVE
public AttributeDefUniqueNameCaseInsensitiveHook()
public static void clearHook()
public static void registerHookIfNecessary()
public void attributeDefPreInsert(HooksContext hooksContext, HooksAttributeDefBean preInsertBean)
AttributeDefHookspublic static void verifyCaseInsensitiveName(AttributeDef attributeDef)
attributeDef - public void attributeDefPreUpdate(HooksContext hooksContext, HooksAttributeDefBean preUpdateBean)
AttributeDefHooksattributeDefPreUpdate in class AttributeDefHooksAttributeDefHooks.attributeDefPreUpdate(HooksContext, HooksAttributeDefBean)Copyright © 2016 Internet2. All rights reserved.