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 String
constant for method name for: attributePostCommitDeletestatic final String
constant for method name for: attributePostCommitInsertstatic final String
constant for method name for: attributePostCommitUpdatestatic final String
constant for method name for: attributePostDeletestatic final String
constant for method name for: attributePostInsertstatic final String
constant for method name for: attributePostUpdatestatic final String
constant for method name for: attributePreDeletestatic final String
constant for method name for: attributePreInsertstatic final String
constant for method name for: attributePreUpdate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attributePostCommitDelete
(HooksContext hooksContext, HooksAttributeBean postCommitDeleteBean) called right after a commit involving a attribute delete commitvoid
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 commitvoid
attributePostDelete
(HooksContext hooksContext, HooksAttributeBean postDeleteBean) called right after a attribute deletevoid
attributePostInsert
(HooksContext hooksContext, HooksAttributeBean postInsertBean) called right after a attribute insertvoid
attributePostUpdate
(HooksContext hooksContext, HooksAttributeBean postUpdateBean) called right after a attribute updatevoid
attributePreDelete
(HooksContext hooksContext, HooksAttributeBean preDeleteBean) called right before a attribute deletevoid
attributePreInsert
(HooksContext hooksContext, HooksAttributeBean preInsertBean) called right before a attribute insertvoid
attributePreUpdate
(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
-
-