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

java.lang.Object
  extended by edu.internet2.middleware.grouper.hooks.StemHooks
      extended by edu.internet2.middleware.grouper.hooks.examples.StemUniqueNameCaseInsensitiveHook

public class StemUniqueNameCaseInsensitiveHook
extends StemHooks

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


Field Summary
static String VETO_STEM_UNIQUE_NAME_CASE_INSENSITIVE
           
 
Fields inherited from class edu.internet2.middleware.grouper.hooks.StemHooks
METHOD_STEM_POST_COMMIT_DELETE, METHOD_STEM_POST_COMMIT_INSERT, METHOD_STEM_POST_COMMIT_UPDATE, METHOD_STEM_POST_DELETE, METHOD_STEM_POST_INSERT, METHOD_STEM_POST_UPDATE, METHOD_STEM_PRE_DELETE, METHOD_STEM_PRE_INSERT, METHOD_STEM_PRE_UPDATE
 
Constructor Summary
StemUniqueNameCaseInsensitiveHook()
           
 
Method Summary
 void stemPreInsert(HooksContext hooksContext, HooksStemBean preInsertBean)
          called right before a stem insert
 void stemPreUpdate(HooksContext hooksContext, HooksStemBean preUpdateBean)
          called right before a stem update
static void verifyCaseInsensitiveName(Stem stem)
           
 
Methods inherited from class edu.internet2.middleware.grouper.hooks.StemHooks
stemPostCommitDelete, stemPostCommitInsert, stemPostCommitUpdate, stemPostDelete, stemPostInsert, stemPostUpdate, stemPreDelete
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VETO_STEM_UNIQUE_NAME_CASE_INSENSITIVE

public static final String VETO_STEM_UNIQUE_NAME_CASE_INSENSITIVE
See Also:
Constant Field Values
Constructor Detail

StemUniqueNameCaseInsensitiveHook

public StemUniqueNameCaseInsensitiveHook()
Method Detail

stemPreInsert

public void stemPreInsert(HooksContext hooksContext,
                          HooksStemBean preInsertBean)
Description copied from class: StemHooks
called right before a stem insert

Overrides:
stemPreInsert in class StemHooks
See Also:
StemHooks.stemPreInsert(HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksStemBean)

verifyCaseInsensitiveName

public static void verifyCaseInsensitiveName(Stem stem)
Parameters:
stem -

stemPreUpdate

public void stemPreUpdate(HooksContext hooksContext,
                          HooksStemBean preUpdateBean)
Description copied from class: StemHooks
called right before a stem update

Overrides:
stemPreUpdate in class StemHooks
See Also:
StemHooks.stemPreUpdate(HooksContext, HooksStemBean)