Class AttributeHooks
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeHooks
- Direct Known Subclasses:
AttributeHooksImplExampleEmail,AttributeIncludeExcludeHook,AttributeSecurityFromTypeHook,GroupAttributeNameValidationAttrHook
Extend this class and configure in grouper.properties for hooks on
attribute related actions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconstant for method name for: attributePostCommitDeletestatic final Stringconstant for method name for: attributePostCommitInsertstatic final Stringconstant for method name for: attributePostCommitUpdatestatic final Stringconstant for method name for: attributePostDeletestatic final Stringconstant for method name for: attributePostInsertstatic final Stringconstant for method name for: attributePostUpdatestatic final Stringconstant for method name for: attributePreDeletestatic final Stringconstant for method name for: attributePreInsertstatic final Stringconstant for method name for: attributePreUpdate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattributePostCommitDelete(HooksContext hooksContext, HooksAttributeBean postCommitDeleteBean) called right after a commit involving a attribute delete commitvoidattributePostCommitInsert(HooksContext hooksContext, HooksAttributeBean postCommitInsertBean) called right after the commit of a post insert commit.voidattributePostCommitUpdate(HooksContext hooksContext, HooksAttributeBean postCommitUpdateBean) called right after a commit on a attribute update commitvoidattributePostDelete(HooksContext hooksContext, HooksAttributeBean postDeleteBean) called right after a attribute deletevoidattributePostInsert(HooksContext hooksContext, HooksAttributeBean postInsertBean) called right after a attribute insertvoidattributePostUpdate(HooksContext hooksContext, HooksAttributeBean postUpdateBean) called right after a attribute updatevoidattributePreDelete(HooksContext hooksContext, HooksAttributeBean preDeleteBean) called right before a attribute deletevoidattributePreInsert(HooksContext hooksContext, HooksAttributeBean preInsertBean) called right before a attribute insertvoidattributePreUpdate(HooksContext hooksContext, HooksAttributeBean preUpdateBean) called right before a attribute update
-
Field Details
-
METHOD_ATTRIBUTE_POST_COMMIT_DELETE
constant for method name for: attributePostCommitDelete- See Also:
-
METHOD_ATTRIBUTE_POST_COMMIT_INSERT
constant for method name for: attributePostCommitInsert- See Also:
-
METHOD_ATTRIBUTE_POST_COMMIT_UPDATE
constant for method name for: attributePostCommitUpdate- See Also:
-
METHOD_ATTRIBUTE_POST_DELETE
constant for method name for: attributePostDelete- See Also:
-
METHOD_ATTRIBUTE_POST_INSERT
constant for method name for: attributePostInsert- See Also:
-
METHOD_ATTRIBUTE_POST_UPDATE
constant for method name for: attributePostUpdate- See Also:
-
METHOD_ATTRIBUTE_PRE_DELETE
constant for method name for: attributePreDelete- See Also:
-
METHOD_ATTRIBUTE_PRE_INSERT
constant for method name for: attributePreInsert- See Also:
-
METHOD_ATTRIBUTE_PRE_UPDATE
constant for method name for: attributePreUpdate- See Also:
-
-
Constructor Details
-
AttributeHooks
public AttributeHooks()
-
-
Method Details
-
attributePreUpdate
called right before a attribute update- Parameters:
hooksContext-preUpdateBean-
-
attributePostUpdate
called right after a attribute update- Parameters:
hooksContext-postUpdateBean-
-
attributePreInsert
called right before a attribute insert- Parameters:
hooksContext-preInsertBean-
-
attributePostInsert
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
called right before a attribute delete- Parameters:
hooksContext-preDeleteBean-
-
attributePostDelete
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-
-