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

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

public class GroupUniqueNameCaseInsensitiveHook
extends GroupHooks

 built in hook to grouper, which is turned on when it is configured in the grouper.properties.
 
 group names will case insensitive be unique
 
 set that with grouper.properties:
 
 hooks.group.class = edu.internet2.middleware.grouper.hooks.examples.GroupUniqueNameCaseInsensitiveHook
 
 


Field Summary
static String VETO_GROUP_UNIQUE_NAME_CASE_INSENSITIVE
          veto key
 
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
GroupUniqueNameCaseInsensitiveHook()
           
 
Method Summary
 void groupPreInsert(HooksContext hooksContext, HooksGroupBean preInsertBean)
          called right before a group insert
 void groupPreUpdate(HooksContext hooksContext, HooksGroupBean preUpdateBean)
          called right before a group update
static void verifyCaseInsensitiveName(Group group)
           
 
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
 

Field Detail

VETO_GROUP_UNIQUE_NAME_CASE_INSENSITIVE

public static final String VETO_GROUP_UNIQUE_NAME_CASE_INSENSITIVE
veto key

See Also:
Constant Field Values
Constructor Detail

GroupUniqueNameCaseInsensitiveHook

public GroupUniqueNameCaseInsensitiveHook()
Method Detail

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)

verifyCaseInsensitiveName

public static void verifyCaseInsensitiveName(Group group)
Parameters:
group -

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)