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

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

public class AttributeHooksImplExampleEmail
extends AttributeHooks

test implementation of group hooks for test. checks to make sure group attribute is not in use by another group, subject, or subject id (for email prefix)


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
AttributeHooksImplExampleEmail()
           
 
Method Summary
 void attributePreInsert(HooksContext hooksContext, HooksAttributeBean preInsertBean)
          called right before a attribute insert
 void attributePreUpdate(HooksContext hooksContext, HooksAttributeBean preUpdateBean)
          if there is a changed emailAddress, make sure it doesnt already existin another group or subject
 
Methods inherited from class edu.internet2.middleware.grouper.hooks.AttributeHooks
attributePostCommitDelete, attributePostCommitInsert, attributePostCommitUpdate, attributePostDelete, attributePostInsert, attributePostUpdate, attributePreDelete
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeHooksImplExampleEmail

public AttributeHooksImplExampleEmail()
Method Detail

attributePreUpdate

public void attributePreUpdate(HooksContext hooksContext,
                               HooksAttributeBean preUpdateBean)
if there is a changed emailAddress, make sure it doesnt already existin another group or subject

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

attributePreInsert

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

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