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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAssignValuePostDelete(HooksContext hooksContext, HooksAttributeAssignValueBean postDeleteBean) called right after a attribute assign value deletevoidattributeAssignValuePostInsert(HooksContext hooksContext, HooksAttributeAssignValueBean postInsertBean) called right after a attribute assign value insertvoidattributeAssignValuePostUpdate(HooksContext hooksContext, HooksAttributeAssignValueBean postUpdateBean) called right after a attribute assign value updatestatic voidstatic ThreadLocal<Boolean>static voidregisterHookIfNecessary(boolean tryAgainIfNotBefore) register this hookvoidvalidateRule(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:AttributeAssignValueHookscalled right after a attribute assign value delete- Overrides:
attributeAssignValuePostDeletein classAttributeAssignValueHooks
-
attributeAssignValuePostInsert
public void attributeAssignValuePostInsert(HooksContext hooksContext, HooksAttributeAssignValueBean postInsertBean) Description copied from class:AttributeAssignValueHookscalled right after a attribute assign value insert- Overrides:
attributeAssignValuePostInsertin classAttributeAssignValueHooks
-
attributeAssignValuePostUpdate
public void attributeAssignValuePostUpdate(HooksContext hooksContext, HooksAttributeAssignValueBean postUpdateBean) Description copied from class:AttributeAssignValueHookscalled right after a attribute assign value update- Overrides:
attributeAssignValuePostUpdatein classAttributeAssignValueHooks
-
validateRule
validate this rule- Parameters:
attributeAssignValue-isDelete-
-
registerHookIfNecessary
public static void registerHookIfNecessary(boolean tryAgainIfNotBefore) register this hook- Parameters:
tryAgainIfNotBefore-
-
getThreadLocalInValidateRule
- Returns:
- the threadLocalInValidateRule
-