Enum Class GrouperHookType
- All Implemented Interfaces:
GrouperHookTypeInterface
,Serializable
,Comparable<GrouperHookType>
,Constable
type of hook, and manages the classes and instances
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionattribute hooksattribute assign hooksattribute assign value hooksattribute hooksattribute hookscomposite hooksexternal subject hooksfield hooksgroup hooksgroup type hooksstem hooksgrouper session hooksgroup hooksloader hooksmember hooksmembership hooksstem hooks -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addHookOverride
(String propertyFileKey, Class<?> hookClass) for testing, you can override a hook (dont forget to remove later).static void
addHookOverride
(String propertyFileKey, List<Class<?>> hookClasses) for testing, you can override a hook (dont forget to remove later).static void
Class<?>
base class for this hook classproperty file key for this hook classstatic List<GrouperHookMethodAndObject>
hooksInstances
(GrouperHookTypeInterface grouperHookTypeInterface, String methodName, Class<?> beanClass) get an instance for this group typestatic GrouperHookType
Returns the enum constant of this class with the specified name.static GrouperHookType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL_SUBJECT
external subject hooks -
LOADER
loader hooks -
GROUP
group hooks -
ATTRIBUTE
attribute hooks -
ATTRIBUTE_ASSIGN
attribute assign hooks -
ATTRIBUTE_ASSIGN_VALUE
attribute assign value hooks -
ATTRIBUTE_DEF
attribute hooks -
ATTRIBUTE_DEF_NAME
attribute hooks -
LIFECYCLE
group hooks -
STEM
stem hooks -
MEMBER
member hooks -
COMPOSITE
composite hooks -
FIELD
field hooks -
GROUPER_SESSION
grouper session hooks -
GROUP_TYPE
group type hooks -
GROUP_TYPE_TUPLE
stem hooks -
MEMBERSHIP
membership hooks
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
clearHooks
public static void clearHooks() -
hooksInstances
public static List<GrouperHookMethodAndObject> hooksInstances(GrouperHookTypeInterface grouperHookTypeInterface, String methodName, Class<?> beanClass) get an instance for this group type- Parameters:
grouperHookTypeInterface
-methodName
- e.g. groupPreUpdatebeanClass
- e.g. HooksGroupBean.class- Returns:
- the instance / methods or empty list if none configured
-
addHookOverride
for testing, you can override a hook (dont forget to remove later). this temporarily hides existing hooks- Parameters:
propertyFileKey
-hookClass
-
-
addHookOverride
for testing, you can override a hook (dont forget to remove later). this temporarily hides existing hooks- Parameters:
propertyFileKey
-hookClasses
-
-
getPropertyFileKey
property file key for this hook class- Specified by:
getPropertyFileKey
in interfaceGrouperHookTypeInterface
- Returns:
- the propertyFileKey
-
getBaseClass
base class for this hook class- Specified by:
getBaseClass
in interfaceGrouperHookTypeInterface
- Returns:
- the baseClass
-