edu.internet2.middleware.grouper.hooks
Class AttributeHooks

java.lang.Object
  extended by edu.internet2.middleware.grouper.hooks.AttributeHooks
Direct Known Subclasses:
AttributeHooksImplExampleEmail, AttributeIncludeExcludeHook, AttributeSecurityFromTypeHook, GroupAttributeNameValidationAttrHook

public abstract class AttributeHooks
extends Object

Extend this class and configure in grouper.properties for hooks on attribute related actions


Field Summary
static String METHOD_ATTRIBUTE_POST_COMMIT_DELETE
          constant for method name for: attributePostCommitDelete
static String METHOD_ATTRIBUTE_POST_COMMIT_INSERT
          constant for method name for: attributePostCommitInsert
static String METHOD_ATTRIBUTE_POST_COMMIT_UPDATE
          constant for method name for: attributePostCommitUpdate
static String METHOD_ATTRIBUTE_POST_DELETE
          constant for method name for: attributePostDelete
static String METHOD_ATTRIBUTE_POST_INSERT
          constant for method name for: attributePostInsert
static String METHOD_ATTRIBUTE_POST_UPDATE
          constant for method name for: attributePostUpdate
static String METHOD_ATTRIBUTE_PRE_DELETE
          constant for method name for: attributePreDelete
static String METHOD_ATTRIBUTE_PRE_INSERT
          constant for method name for: attributePreInsert
static String METHOD_ATTRIBUTE_PRE_UPDATE
          constant for method name for: attributePreUpdate
 
Constructor Summary
AttributeHooks()
           
 
Method Summary
 void attributePostCommitDelete(HooksContext hooksContext, HooksAttributeBean postCommitDeleteBean)
          called right after a commit involving a attribute delete commit
 void attributePostCommitInsert(HooksContext hooksContext, HooksAttributeBean postCommitInsertBean)
          called right after the commit of a post insert commit.
 void attributePostCommitUpdate(HooksContext hooksContext, HooksAttributeBean postCommitUpdateBean)
          called right after a commit on a attribute update commit
 void attributePostDelete(HooksContext hooksContext, HooksAttributeBean postDeleteBean)
          called right after a attribute delete
 void attributePostInsert(HooksContext hooksContext, HooksAttributeBean postInsertBean)
          called right after a attribute insert
 void attributePostUpdate(HooksContext hooksContext, HooksAttributeBean postUpdateBean)
          called right after a attribute update
 void attributePreDelete(HooksContext hooksContext, HooksAttributeBean preDeleteBean)
          called right before a attribute delete
 void attributePreInsert(HooksContext hooksContext, HooksAttributeBean preInsertBean)
          called right before a attribute insert
 void attributePreUpdate(HooksContext hooksContext, HooksAttributeBean preUpdateBean)
          called right before a attribute update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_ATTRIBUTE_POST_COMMIT_DELETE

public static final String METHOD_ATTRIBUTE_POST_COMMIT_DELETE
constant for method name for: attributePostCommitDelete

See Also:
Constant Field Values

METHOD_ATTRIBUTE_POST_COMMIT_INSERT

public static final String METHOD_ATTRIBUTE_POST_COMMIT_INSERT
constant for method name for: attributePostCommitInsert

See Also:
Constant Field Values

METHOD_ATTRIBUTE_POST_COMMIT_UPDATE

public static final String METHOD_ATTRIBUTE_POST_COMMIT_UPDATE
constant for method name for: attributePostCommitUpdate

See Also:
Constant Field Values

METHOD_ATTRIBUTE_POST_DELETE

public static final String METHOD_ATTRIBUTE_POST_DELETE
constant for method name for: attributePostDelete

See Also:
Constant Field Values

METHOD_ATTRIBUTE_POST_INSERT

public static final String METHOD_ATTRIBUTE_POST_INSERT
constant for method name for: attributePostInsert

See Also:
Constant Field Values

METHOD_ATTRIBUTE_POST_UPDATE

public static final String METHOD_ATTRIBUTE_POST_UPDATE
constant for method name for: attributePostUpdate

See Also:
Constant Field Values

METHOD_ATTRIBUTE_PRE_DELETE

public static final String METHOD_ATTRIBUTE_PRE_DELETE
constant for method name for: attributePreDelete

See Also:
Constant Field Values

METHOD_ATTRIBUTE_PRE_INSERT

public static final String METHOD_ATTRIBUTE_PRE_INSERT
constant for method name for: attributePreInsert

See Also:
Constant Field Values

METHOD_ATTRIBUTE_PRE_UPDATE

public static final String METHOD_ATTRIBUTE_PRE_UPDATE
constant for method name for: attributePreUpdate

See Also:
Constant Field Values
Constructor Detail

AttributeHooks

public AttributeHooks()
Method Detail

attributePreUpdate

public void attributePreUpdate(HooksContext hooksContext,
                               HooksAttributeBean preUpdateBean)
called right before a attribute update

Parameters:
hooksContext -
preUpdateBean -

attributePostUpdate

public void attributePostUpdate(HooksContext hooksContext,
                                HooksAttributeBean postUpdateBean)
called right after a attribute update

Parameters:
hooksContext -
postUpdateBean -

attributePreInsert

public void attributePreInsert(HooksContext hooksContext,
                               HooksAttributeBean preInsertBean)
called right before a attribute insert

Parameters:
hooksContext -
preInsertBean -

attributePostInsert

public void attributePostInsert(HooksContext hooksContext,
                                HooksAttributeBean postInsertBean)
called right after a attribute insert

Parameters:
hooksContext -
postInsertBean -

attributePostCommitInsert

public void attributePostCommitInsert(HooksContext hooksContext,
                                      HooksAttributeBean postCommitInsertBean)
called right after the commit of a post insert commit. Note, cant veto this or participate in the tx

Parameters:
hooksContext -
postCommitInsertBean -

attributePreDelete

public void attributePreDelete(HooksContext hooksContext,
                               HooksAttributeBean preDeleteBean)
called right before a attribute delete

Parameters:
hooksContext -
preDeleteBean -

attributePostDelete

public void attributePostDelete(HooksContext hooksContext,
                                HooksAttributeBean postDeleteBean)
called right after a attribute delete

Parameters:
hooksContext -
postDeleteBean -

attributePostCommitDelete

public void attributePostCommitDelete(HooksContext hooksContext,
                                      HooksAttributeBean postCommitDeleteBean)
called right after a commit involving a attribute delete commit

Parameters:
hooksContext -
postCommitDeleteBean -

attributePostCommitUpdate

public void attributePostCommitUpdate(HooksContext hooksContext,
                                      HooksAttributeBean postCommitUpdateBean)
called right after a commit on a attribute update commit

Parameters:
hooksContext -
postCommitUpdateBean -