public class StemAttributeNameValidationHook extends StemHooks
built in hook to grouper, which is turned on when it is configured in the grouper.properties. you can retrict certain attributes of a stem 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_STEM_POST_COMMIT_DELETE, METHOD_STEM_POST_COMMIT_INSERT, METHOD_STEM_POST_COMMIT_UPDATE, METHOD_STEM_POST_DELETE, METHOD_STEM_POST_INSERT, METHOD_STEM_POST_UPDATE, METHOD_STEM_PRE_DELETE, METHOD_STEM_PRE_INSERT, METHOD_STEM_PRE_UPDATE| Constructor and Description |
|---|
StemAttributeNameValidationHook() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearHook() |
static void |
registerHookIfNecessary(boolean addTestValidation)
see if this is configured in the grouper.properties, if so, register this hook
|
void |
stemPreInsert(HooksContext hooksContext,
HooksStemBean preInsertBean)
called right before a stem insert
|
void |
stemPreUpdate(HooksContext hooksContext,
HooksStemBean preUpdateBean)
called right before a stem update
|
stemPostCommitDelete, stemPostCommitInsert, stemPostCommitUpdate, stemPostDelete, stemPostInsert, stemPostUpdate, stemPreDeletepublic static final String TEST_ATTRIBUTE_NAME
public static final String TEST_PATTERN
public static void clearHook()
public static void registerHookIfNecessary(boolean addTestValidation)
addTestValidation - if a test validation should be addedpublic void stemPreInsert(HooksContext hooksContext, HooksStemBean preInsertBean)
StemHookspublic void stemPreUpdate(HooksContext hooksContext, HooksStemBean preUpdateBean)
StemHooksCopyright © 2016 Internet2. All rights reserved.