public class GroupAttributeNameValidationHook extends GroupHooks
built in hook to grouper, which is turned on when it is configured in the grouper.properties. you can retrict certain attributes of a group 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_GROUP_POST_COMMIT_DELETE, METHOD_GROUP_POST_COMMIT_INSERT, METHOD_GROUP_POST_COMMIT_UPDATE, METHOD_GROUP_POST_DELETE, METHOD_GROUP_POST_INSERT, METHOD_GROUP_POST_UPDATE, METHOD_GROUP_PRE_DELETE, METHOD_GROUP_PRE_INSERT, METHOD_GROUP_PRE_UPDATE
Constructor and Description |
---|
GroupAttributeNameValidationHook() |
Modifier and Type | Method and Description |
---|---|
void |
groupPreInsert(HooksContext hooksContext,
HooksGroupBean preInsertBean)
called right before a group insert
|
void |
groupPreUpdate(HooksContext hooksContext,
HooksGroupBean preUpdateBean)
called right before a group update
|
static void |
registerHookIfNecessary(boolean addTestValidation)
see if this is configured in the grouper.properties, if so, register this hook
|
groupPostCommitDelete, groupPostCommitInsert, groupPostCommitUpdate, groupPostDelete, groupPostInsert, groupPostUpdate, groupPreDelete
public static final String TEST_ATTRIBUTE_NAME
public static final String TEST_PATTERN
public static void registerHookIfNecessary(boolean addTestValidation)
addTestValidation
- if a test validation should be addedpublic void groupPreInsert(HooksContext hooksContext, HooksGroupBean preInsertBean)
GroupHooks
public void groupPreUpdate(HooksContext hooksContext, HooksGroupBean preUpdateBean)
GroupHooks
Copyright © 2016 Internet2. All rights reserved.