Class UniqueObjectAttributeDefHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeDefHooks
edu.internet2.middleware.grouper.hooks.examples.UniqueObjectAttributeDefHook
When attribute defs are created or saved, make sure there are no name conflicts with other object types
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefHooks
METHOD_ATTRIBUTE_DEF_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_DEF_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_DEF_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_DEF_POST_DELETE, METHOD_ATTRIBUTE_DEF_POST_INSERT, METHOD_ATTRIBUTE_DEF_POST_UPDATE, METHOD_ATTRIBUTE_DEF_PRE_DELETE, METHOD_ATTRIBUTE_DEF_PRE_INSERT, METHOD_ATTRIBUTE_DEF_PRE_UPDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
make sure no groups by this name existvoid
attributeDefPreInsert
(HooksContext hooksContext, HooksAttributeDefBean preInsertBean) called right before a attribute insertvoid
attributeDefPreUpdate
(HooksContext hooksContext, HooksAttributeDefBean preUpdateBean) called right before a attribute updateMethods inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefHooks
attributeDefPostCommitDelete, attributeDefPostCommitInsert, attributeDefPostCommitUpdate, attributeDefPostDelete, attributeDefPostInsert, attributeDefPostUpdate, attributeDefPreDelete
-
Constructor Details
-
UniqueObjectAttributeDefHook
public UniqueObjectAttributeDefHook()
-
-
Method Details
-
attributeDefPreUpdate
Description copied from class:AttributeDefHooks
called right before a attribute update -
attributeDefPreInsert
Description copied from class:AttributeDefHooks
called right before a attribute insert -
assertNoAttributeDefsWithThisNameExist
make sure no groups by this name exist- Parameters:
name
-
-