edu.internet2.middleware.grouper.hooks.examples
Class GrouperAttributeAssignValueRulesConfigHook

java.lang.Object
  extended by edu.internet2.middleware.grouper.hooks.AttributeAssignValueHooks
      extended by edu.internet2.middleware.grouper.hooks.examples.GrouperAttributeAssignValueRulesConfigHook

public class GrouperAttributeAssignValueRulesConfigHook
extends AttributeAssignValueHooks

Fire on attribute assign value changes, validate the rules and set the answer in "valid" T|F attribute value

Author:
mchyzer

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
GrouperAttributeAssignValueRulesConfigHook()
           
 
Method Summary
 void attributeAssignValuePostDelete(HooksContext hooksContext, HooksAttributeAssignValueBean postDeleteBean)
          called right after a attribute assign value delete
 void attributeAssignValuePostInsert(HooksContext hooksContext, HooksAttributeAssignValueBean postInsertBean)
          called right after a attribute assign value insert
 void attributeAssignValuePostUpdate(HooksContext hooksContext, HooksAttributeAssignValueBean postUpdateBean)
          called right after a attribute assign value update
static ThreadLocal<Boolean> getThreadLocalInValidateRule()
           
static void registerHookIfNecessary(boolean tryAgainIfNotBefore)
          register this hook
 void validateRule(AttributeAssignValue attributeAssignValue, boolean isDelete)
          validate this rule
 
Methods inherited from class edu.internet2.middleware.grouper.hooks.AttributeAssignValueHooks
attributeAssignValuePostCommitDelete, attributeAssignValuePostCommitInsert, attributeAssignValuePostCommitUpdate, attributeAssignValuePreDelete, attributeAssignValuePreInsert, attributeAssignValuePreUpdate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperAttributeAssignValueRulesConfigHook

public GrouperAttributeAssignValueRulesConfigHook()
Method Detail

attributeAssignValuePostDelete

public void attributeAssignValuePostDelete(HooksContext hooksContext,
                                           HooksAttributeAssignValueBean postDeleteBean)
Description copied from class: AttributeAssignValueHooks
called right after a attribute assign value delete

Overrides:
attributeAssignValuePostDelete in class AttributeAssignValueHooks

attributeAssignValuePostInsert

public void attributeAssignValuePostInsert(HooksContext hooksContext,
                                           HooksAttributeAssignValueBean postInsertBean)
Description copied from class: AttributeAssignValueHooks
called right after a attribute assign value insert

Overrides:
attributeAssignValuePostInsert in class AttributeAssignValueHooks

attributeAssignValuePostUpdate

public void attributeAssignValuePostUpdate(HooksContext hooksContext,
                                           HooksAttributeAssignValueBean postUpdateBean)
Description copied from class: AttributeAssignValueHooks
called right after a attribute assign value update

Overrides:
attributeAssignValuePostUpdate in class AttributeAssignValueHooks

validateRule

public void validateRule(AttributeAssignValue attributeAssignValue,
                         boolean isDelete)
validate this rule

Parameters:
attributeAssignValue -
isDelete -

registerHookIfNecessary

public static void registerHookIfNecessary(boolean tryAgainIfNotBefore)
register this hook

Parameters:
tryAgainIfNotBefore -

getThreadLocalInValidateRule

public static ThreadLocal<Boolean> getThreadLocalInValidateRule()
Returns:
the threadLocalInValidateRule