|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.hooks.GroupTypeTupleHooks edu.internet2.middleware.grouper.hooks.examples.GroupTypeSecurityHook
public class GroupTypeSecurityHook
built in hook to grouper, which is turned on when it is configured in the grouper.properties. you can security certain group types which can only be added/removed to/from a group based on if the user doing the work is in a certain group (or wheel), or if the user is only a wheel group member. normally a user with admin rights on a group can edit the group type associations Log debug with log4j setting log4j.logger.edu.internet2.middleware.grouper.hooks.examples.GroupTypeSecurityHook = DEBUG
Field Summary |
---|
Constructor Summary | |
---|---|
GroupTypeSecurityHook()
|
Method Summary | |
---|---|
static String |
groupNameFromAndGroupAttributeName(String attributeName)
|
void |
groupTypeTuplePostDelete(HooksContext hooksContext,
HooksGroupTypeTupleBean postDeleteBean)
called right after a groupTypeTuple delete |
void |
groupTypeTuplePostInsert(HooksContext hooksContext,
HooksGroupTypeTupleBean postInsertBean)
called right after a groupTypeTuple insert |
static boolean |
isRegisteredSuccess()
If the hook was registered due to settings in the grouper.properties |
static void |
registerHookIfNecessary(boolean tryAgainIfNotBefore)
see if this is configured in the grouper.properties, if so, register this hook |
static boolean |
resetCacheSettings()
reset cached settings from config, return true if found some |
static void |
vetoIfNecessary(String groupUuid,
String typeUuid,
String descriptionForLog)
veto a type or attribute edit if necessary |
Methods inherited from class edu.internet2.middleware.grouper.hooks.GroupTypeTupleHooks |
---|
groupTypeTuplePostCommitDelete, groupTypeTuplePostCommitInsert, groupTypeTuplePostCommitUpdate, groupTypeTuplePostUpdate, groupTypeTuplePreDelete, groupTypeTuplePreInsert, groupTypeTuplePreUpdate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupTypeSecurityHook()
Method Detail |
---|
public static void registerHookIfNecessary(boolean tryAgainIfNotBefore)
tryAgainIfNotBefore
- public static boolean resetCacheSettings()
public static void vetoIfNecessary(String groupUuid, String typeUuid, String descriptionForLog) throws HookVeto
groupUuid
- typeUuid
- descriptionForLog
-
HookVeto
- if there is a problempublic static String groupNameFromAndGroupAttributeName(String attributeName)
attributeName
-
public void groupTypeTuplePostDelete(HooksContext hooksContext, HooksGroupTypeTupleBean postDeleteBean)
GroupTypeTupleHooks
groupTypeTuplePostDelete
in class GroupTypeTupleHooks
GroupTypeTupleHooks.groupTypeTuplePostDelete(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksGroupTypeTupleBean)
public void groupTypeTuplePostInsert(HooksContext hooksContext, HooksGroupTypeTupleBean postInsertBean)
GroupTypeTupleHooks
groupTypeTuplePostInsert
in class GroupTypeTupleHooks
GroupTypeTupleHooks.groupTypeTuplePostInsert(edu.internet2.middleware.grouper.hooks.beans.HooksContext, edu.internet2.middleware.grouper.hooks.beans.HooksGroupTypeTupleBean)
public static boolean isRegisteredSuccess()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |