|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.hooks.logic.GrouperHooksUtils
public class GrouperHooksUtils
utils for grouper hooks
Constructor Summary | |
---|---|
GrouperHooksUtils()
|
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrouperHooksUtils()
Method Detail |
---|
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_INSERT
HookVeto
- 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_INSERT
HookVeto
- 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_INSERT
HookVeto
- 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.class
HookVeto
- 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 hook
HookVeto
- 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.class
HookVeto
- if there is a veto (if applicable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |