public class GrouperHooksUtils extends Object
| Constructor and Description |
|---|
GrouperHooksUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHookManual(String propertyFileKey,
Class<?> hooksClass)
add a hook to the list of configured hooks for this type
note if the class already exists it will not be added again
|
static void |
callHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
Class<? extends HooksBean> hooksBeanClass,
Object[] businessObjects,
Class[] businessClasses,
VetoType vetoType) |
static void |
callHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
Class<? extends HooksBean> hooksBeanClass,
Object businessObject,
Class businessClass,
VetoType vetoType) |
static void |
callHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
HooksBean hooksBean,
VetoType vetoType) |
static void |
callHooksIfRegistered(Object object,
GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
Class<? extends HooksBean> hooksBeanClass,
Object[] businessObjects,
Class[] businessClasses,
VetoType vetoType,
boolean resetDbVersion,
boolean clearDbVersion) |
static void |
callHooksIfRegistered(Object object,
GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
Class<? extends HooksBean> hooksBeanClass,
Object businessObject,
Class businessClass,
VetoType vetoType,
boolean resetDbVersion,
boolean clearDbVersion) |
static void |
fireGrouperStartupHooksIfNotFiredAlready()
kick off startup hooks if not done already
|
static void |
reloadHooks()
clear out hooks and reloader (e.g.
|
static void |
schedulePostCommitHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
Class<? extends HooksBean> hooksBeanClass,
Object[] businessObjects,
Class[] businessClasses)
if there are hooks available, schedule the post commit call
|
static void |
schedulePostCommitHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
Class<? extends HooksBean> hooksBeanClass,
Object businessObject,
Class businessClass)
if there are hooks available, schedule the post commit call
|
static void |
schedulePostCommitHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface,
String hookMethodName,
HooksBean hooksBean)
if there are hooks available, schedule the post commit call
|
public static void fireGrouperStartupHooksIfNotFiredAlready()
public static void addHookManual(String propertyFileKey, Class<?> hooksClass)
propertyFileKey - hooksClass - public static void callHooksIfRegistered(Object object, GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, Class<? extends HooksBean> hooksBeanClass, Object businessObject, Class businessClass, VetoType vetoType, boolean resetDbVersion, boolean clearDbVersion) throws HookVeto
object - that the hook is aboutgrouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBeanClass - e.g. HooksGroupPreInsertBean.classbusinessObject - are the intances to pass to bean constructor. e.g. groupbusinessClass - are the types passed to bean constructor. e.g. Group.classvetoType - is default vetoType, e.g. VetoTypeGrouper.GROUP_PRE_INSERTresetDbVersion - if the db version should be saved, assigned, reset, etc (for low level hooks)clearDbVersion - if the db version should be cleared (e.g. on delete) (for low level hooks)HookVeto - if there is a veto (if applicable)public static void callHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, Class<? extends HooksBean> hooksBeanClass, Object[] businessObjects, Class[] businessClasses, VetoType vetoType) throws HookVeto
grouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBeanClass - e.g. HooksGroupPreInsertBean.classbusinessObjects - are the intances to pass to bean constructor. e.g. groupbusinessClasses - are the types passed to bean constructor. e.g. Group.classvetoType - is default vetoType, e.g. VetoTypeGrouper.GROUP_PRE_INSERTHookVeto - if there is a veto (if applicable)public static void callHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, Class<? extends HooksBean> hooksBeanClass, Object businessObject, Class businessClass, VetoType vetoType) throws HookVeto
grouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBeanClass - e.g. HooksGroupPreInsertBean.classbusinessObject - are the intances to pass to bean constructor. e.g. groupbusinessClass - are the types passed to bean constructor. e.g. Group.classvetoType - is default vetoType, e.g. VetoTypeGrouper.GROUP_PRE_INSERTHookVeto - if there is a veto (if applicable)public static void callHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, HooksBean hooksBean, VetoType vetoType) throws HookVeto
grouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBean - hooks beanvetoType - is default vetoType, e.g. VetoTypeGrouper.GROUP_PRE_INSERTHookVeto - if there is a veto (if applicable)public static void callHooksIfRegistered(Object object, GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, Class<? extends HooksBean> hooksBeanClass, Object[] businessObjects, Class[] businessClasses, VetoType vetoType, boolean resetDbVersion, boolean clearDbVersion) throws HookVeto
object - that the hook is aboutgrouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBeanClass - e.g. HooksGroupPreInsertBean.classbusinessObjects - are the intances to pass to bean constructor. e.g. groupbusinessClasses - are the types passed to bean constructor. e.g. Group.classvetoType - is default vetoType, e.g. VetoTypeGrouper.GROUP_PRE_INSERTresetDbVersion - if the db version should be saved, assigned, reset, etc (for low level hooks)clearDbVersion - if the db version should be cleared (e.g. on delete) (for low level hooks)HookVeto - if there is a veto (if applicable)public static void schedulePostCommitHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, Class<? extends HooksBean> hooksBeanClass, Object businessObject, Class businessClass)
grouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBeanClass - e.g. HooksGroupPreInsertBean.classbusinessObject - are the intances to pass to bean constructor. e.g. groupbusinessClass - are the types passed to bean constructor. e.g. Group.classHookVeto - if there is a veto (if applicable)public static void schedulePostCommitHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, HooksBean hooksBean)
grouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBean - as argument to hookHookVeto - if there is a veto (if applicable)public static void schedulePostCommitHooksIfRegistered(GrouperHookTypeInterface grouperHookTypeInterface, String hookMethodName, Class<? extends HooksBean> hooksBeanClass, Object[] businessObjects, Class[] businessClasses)
grouperHookTypeInterface - e.g. GrouperHookType.GROUPhookMethodName - is method name in hook to call e.g. groupPreInserthooksBeanClass - e.g. HooksGroupPreInsertBean.classbusinessObjects - are the intances to pass to bean constructor. e.g. groupbusinessClasses - are the types passed to bean constructor. e.g. Group.classHookVeto - if there is a veto (if applicable)public static void reloadHooks()
Copyright © 2016 Internet2. All rights reserved.