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

java.lang.Object
  extended by edu.internet2.middleware.grouper.hooks.AttributeHooks
      extended by edu.internet2.middleware.grouper.hooks.examples.GroupAttributeNameValidationAttrHook

public class GroupAttributeNameValidationAttrHook
extends AttributeHooks

 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
 
 


Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.hooks.AttributeHooks
METHOD_ATTRIBUTE_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_POST_DELETE, METHOD_ATTRIBUTE_POST_INSERT, METHOD_ATTRIBUTE_POST_UPDATE, METHOD_ATTRIBUTE_PRE_DELETE, METHOD_ATTRIBUTE_PRE_INSERT, METHOD_ATTRIBUTE_PRE_UPDATE
 
Constructor Summary
GroupAttributeNameValidationAttrHook()
           
 
Method Summary
 void attributePostInsert(HooksContext hooksContext, HooksAttributeBean preInsertBean)
          called right after a attribute insert
 void attributePreUpdate(HooksContext hooksContext, HooksAttributeBean preUpdateBean)
          called right before a attribute update
 
Methods inherited from class edu.internet2.middleware.grouper.hooks.AttributeHooks
attributePostCommitDelete, attributePostCommitInsert, attributePostCommitUpdate, attributePostDelete, attributePostUpdate, attributePreDelete, attributePreInsert
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupAttributeNameValidationAttrHook

public GroupAttributeNameValidationAttrHook()
Method Detail

attributePostInsert

public void attributePostInsert(HooksContext hooksContext,
                                HooksAttributeBean preInsertBean)
Description copied from class: AttributeHooks
called right after a attribute insert

Overrides:
attributePostInsert in class AttributeHooks
See Also:
AttributeHooks.attributePostInsert(HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksAttributeBean)

attributePreUpdate

public void attributePreUpdate(HooksContext hooksContext,
                               HooksAttributeBean preUpdateBean)
Description copied from class: AttributeHooks
called right before a attribute update

Overrides:
attributePreUpdate in class AttributeHooks
See Also:
AttributeHooks.attributePreUpdate(HooksContext, HooksAttributeBean)