Class UniqueObjectAttributeDefNameHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
edu.internet2.middleware.grouper.hooks.examples.UniqueObjectAttributeDefNameHook
When attribute def names 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.AttributeDefNameHooks
METHOD_ATTRIBUTE_DEF_NAME_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_DEF_NAME_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_DEF_NAME_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_DEF_NAME_POST_DELETE, METHOD_ATTRIBUTE_DEF_NAME_POST_INSERT, METHOD_ATTRIBUTE_DEF_NAME_POST_UPDATE, METHOD_ATTRIBUTE_DEF_NAME_PRE_DELETE, METHOD_ATTRIBUTE_DEF_NAME_PRE_INSERT, METHOD_ATTRIBUTE_DEF_NAME_PRE_UPDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
make sure no groups by this name existvoid
attributeDefNamePreInsert
(HooksContext hooksContext, HooksAttributeDefNameBean preInsertBean) called right before a attribute insertvoid
attributeDefNamePreUpdate
(HooksContext hooksContext, HooksAttributeDefNameBean preUpdateBean) called right before a attribute updateMethods inherited from class edu.internet2.middleware.grouper.hooks.AttributeDefNameHooks
attributeDefNamePostCommitDelete, attributeDefNamePostCommitInsert, attributeDefNamePostCommitUpdate, attributeDefNamePostDelete, attributeDefNamePostInsert, attributeDefNamePostUpdate, attributeDefNamePreDelete
-
Constructor Details
-
UniqueObjectAttributeDefNameHook
public UniqueObjectAttributeDefNameHook()
-
-
Method Details
-
attributeDefNamePreUpdate
public void attributeDefNamePreUpdate(HooksContext hooksContext, HooksAttributeDefNameBean preUpdateBean) Description copied from class:AttributeDefNameHooks
called right before a attribute update -
attributeDefNamePreInsert
public void attributeDefNamePreInsert(HooksContext hooksContext, HooksAttributeDefNameBean preInsertBean) Description copied from class:AttributeDefNameHooks
called right before a attribute insert -
assertNoAttributeDefNamesWithThisNameExist
make sure no groups by this name exist- Parameters:
name
-
-