edu.internet2.middleware.grouper.hooks.examples
Class UniqueObjectGroupHook

java.lang.Object
  extended by edu.internet2.middleware.grouper.hooks.GroupHooks
      extended by edu.internet2.middleware.grouper.hooks.examples.UniqueObjectGroupHook

public class UniqueObjectGroupHook
extends GroupHooks

When groups 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.GroupHooks
METHOD_GROUP_POST_COMMIT_DELETE, METHOD_GROUP_POST_COMMIT_INSERT, METHOD_GROUP_POST_COMMIT_UPDATE, METHOD_GROUP_POST_DELETE, METHOD_GROUP_POST_INSERT, METHOD_GROUP_POST_UPDATE, METHOD_GROUP_PRE_DELETE, METHOD_GROUP_PRE_INSERT, METHOD_GROUP_PRE_UPDATE
 
Constructor Summary
UniqueObjectGroupHook()
           
 
Method Summary
static void assertNoGroupsWithThisNameExist(String name)
          make sure no groups by this name exist
 void groupPreInsert(HooksContext hooksContext, HooksGroupBean preInsertBean)
          called right before a group insert
 void groupPreUpdate(HooksContext hooksContext, HooksGroupBean preUpdateBean)
          called right before a group update
 
Methods inherited from class edu.internet2.middleware.grouper.hooks.GroupHooks
groupPostCommitDelete, groupPostCommitInsert, groupPostCommitUpdate, groupPostDelete, groupPostInsert, groupPostUpdate, groupPreDelete
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueObjectGroupHook

public UniqueObjectGroupHook()
Method Detail

groupPreUpdate

public void groupPreUpdate(HooksContext hooksContext,
                           HooksGroupBean preUpdateBean)
Description copied from class: GroupHooks
called right before a group update

Overrides:
groupPreUpdate in class GroupHooks
See Also:
GroupHooks.groupPreUpdate(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksGroupBean)

groupPreInsert

public void groupPreInsert(HooksContext hooksContext,
                           HooksGroupBean preInsertBean)
Description copied from class: GroupHooks
called right before a group insert

Overrides:
groupPreInsert in class GroupHooks
See Also:
GroupHooks.groupPreInsert(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksGroupBean)

assertNoGroupsWithThisNameExist

public static void assertNoGroupsWithThisNameExist(String name)
make sure no groups by this name exist

Parameters:
name -