Class GrouperAttributeAssignValueRulesConfigHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeAssignValueHooks
edu.internet2.middleware.grouper.hooks.examples.GrouperAttributeAssignValueRulesConfigHook
Fire on attribute assign value changes, validate the rules and
set the answer in "valid" T|F attribute value
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.hooks.AttributeAssignValueHooks
METHOD_ATTRIBUTE_ASSIGN_VALUE_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_ASSIGN_VALUE_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_ASSIGN_VALUE_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_ASSIGN_VALUE_POST_DELETE, METHOD_ATTRIBUTE_ASSIGN_VALUE_POST_INSERT, METHOD_ATTRIBUTE_ASSIGN_VALUE_POST_UPDATE, METHOD_ATTRIBUTE_ASSIGN_VALUE_PRE_DELETE, METHOD_ATTRIBUTE_ASSIGN_VALUE_PRE_INSERT, METHOD_ATTRIBUTE_ASSIGN_VALUE_PRE_UPDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeAssignValuePostDelete
(HooksContext hooksContext, HooksAttributeAssignValueBean postDeleteBean) called right after a attribute assign value deletevoid
attributeAssignValuePostInsert
(HooksContext hooksContext, HooksAttributeAssignValueBean postInsertBean) called right after a attribute assign value insertvoid
attributeAssignValuePostUpdate
(HooksContext hooksContext, HooksAttributeAssignValueBean postUpdateBean) called right after a attribute assign value updatestatic void
static ThreadLocal<Boolean>
static void
registerHookIfNecessary
(boolean tryAgainIfNotBefore) register this hookvoid
validateRule
(AttributeAssignValue attributeAssignValue, boolean isDelete) validate this ruleMethods inherited from class edu.internet2.middleware.grouper.hooks.AttributeAssignValueHooks
attributeAssignValuePostCommitDelete, attributeAssignValuePostCommitInsert, attributeAssignValuePostCommitUpdate, attributeAssignValuePreDelete, attributeAssignValuePreInsert, attributeAssignValuePreUpdate
-
Constructor Details
-
GrouperAttributeAssignValueRulesConfigHook
public GrouperAttributeAssignValueRulesConfigHook()
-
-
Method Details
-
clearHook
public static void clearHook() -
attributeAssignValuePostDelete
public void attributeAssignValuePostDelete(HooksContext hooksContext, HooksAttributeAssignValueBean postDeleteBean) Description copied from class:AttributeAssignValueHooks
called right after a attribute assign value delete- Overrides:
attributeAssignValuePostDelete
in classAttributeAssignValueHooks
-
attributeAssignValuePostInsert
public void attributeAssignValuePostInsert(HooksContext hooksContext, HooksAttributeAssignValueBean postInsertBean) Description copied from class:AttributeAssignValueHooks
called right after a attribute assign value insert- Overrides:
attributeAssignValuePostInsert
in classAttributeAssignValueHooks
-
attributeAssignValuePostUpdate
public void attributeAssignValuePostUpdate(HooksContext hooksContext, HooksAttributeAssignValueBean postUpdateBean) Description copied from class:AttributeAssignValueHooks
called right after a attribute assign value update- Overrides:
attributeAssignValuePostUpdate
in classAttributeAssignValueHooks
-
validateRule
validate this rule- Parameters:
attributeAssignValue
-isDelete
-
-
registerHookIfNecessary
public static void registerHookIfNecessary(boolean tryAgainIfNotBefore) register this hook- Parameters:
tryAgainIfNotBefore
-
-
getThreadLocalInValidateRule
- Returns:
- the threadLocalInValidateRule
-