edu.internet2.middleware.grouper.hooks.examples
Class UniqueObjectAttributeDefHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeDefHooks
edu.internet2.middleware.grouper.hooks.examples.UniqueObjectAttributeDefHook
public class UniqueObjectAttributeDefHook
- extends AttributeDefHooks
When attribute defs are created or saved, make sure there are no name conflicts with other object types
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueObjectAttributeDefHook
public UniqueObjectAttributeDefHook()
attributeDefPreUpdate
public void attributeDefPreUpdate(HooksContext hooksContext,
HooksAttributeDefBean preUpdateBean)
- Description copied from class:
AttributeDefHooks
- called right before a attribute update
- Overrides:
attributeDefPreUpdate
in class AttributeDefHooks
- See Also:
AttributeDefHooks.attributeDefPreUpdate(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksAttributeDefBean)
attributeDefPreInsert
public void attributeDefPreInsert(HooksContext hooksContext,
HooksAttributeDefBean preInsertBean)
- Description copied from class:
AttributeDefHooks
- called right before a attribute insert
- Overrides:
attributeDefPreInsert
in class AttributeDefHooks
- See Also:
AttributeDefHooks.attributeDefPreInsert(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksAttributeDefBean)
assertNoAttributeDefsWithThisNameExist
public static void assertNoAttributeDefsWithThisNameExist(java.lang.String name)
- make sure no groups by this name exist
- Parameters:
name
-