|
|||||||||
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.GroupTypeTupleIncludeExcludeHook
public class GroupTypeTupleIncludeExcludeHook
built in hook to grouper, which is turned on when it is configured in the grouper.properties. you can auto create groups to facilitate include and exclude lists to debug this add these two entries to log4j.properties log4j.logger.edu.internet2.middleware.grouper.hooks.examples.GroupTypeTupleIncludeExcludeHook = DEBUG log4j.logger.edu.internet2.middleware.grouper.Group = DEBUG
Field Summary |
---|
Constructor Summary | |
---|---|
GroupTypeTupleIncludeExcludeHook()
|
Method Summary | |
---|---|
static String |
convertToOverall(String extension)
convert a system of record extension to an overall extension |
static int |
deleteGroupsIfNotUsed(GrouperSession grouperSession,
String groupName,
StringBuilder reason,
boolean saveIncludesExcludesIfMembers)
|
static String |
excludeDescription(String overallGroupExtension,
String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes exclude description |
static String |
excludeDisplayExtensionSuffix()
substitute and return exclude name suffix |
static String |
excludeExtensionSuffix()
substitute and return exclude id suffix |
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 String |
includeDescription(String overallGroupExtension,
String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes include description |
static String |
includeDisplayExtensionSuffix()
substitute and return include name suffix |
static String |
includeExtensionSuffix()
substitute and return include id suffix |
static String |
includesMinusExcludesDescription(String overallGroupExtension,
String overallGroupDisplayExtension)
substitute and return includesMinusExcludes description |
static String |
includesMinusExcludesDisplayExtensionSuffix()
substitute and return includesMinusExcludes name suffix |
static String |
includesMinusExcludesExtensionSuffix()
substitute and return includesMinusExcludes id suffix |
static void |
main(String[] args)
|
static void |
manageIncludesExcludesAndGroups(Group typedGroup,
boolean isIncludeExclude,
Set<Group> andGroups,
String calledFromForLog)
change a typed group into include and exclude group lists and andGroups also |
static void |
manageIncludesExcludesAndGroups(GrouperSession grouperSession,
Group typedGroup,
String summaryForLog)
|
static boolean |
nameIsIncludeExcludeRequireGroup(String groupName)
see if a group name has an include/exclude or requireGroup suffix |
static String |
overallDescription(String overallGroupExtension,
String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes overall description |
static void |
registerHookIfNecessary(boolean tryAgainIfNotBefore)
see if this is configured in the grouper.properties, if so, register this hook |
static Set<Group> |
relatedGroups(Group group)
return a set of groups including the one passed in, related to this group. |
static String |
requireGroupsDescription(int index,
String overallGroupExtension,
String overallGroupDisplayExtension)
description of group for includeExcludeMinusAndGroup, index is 1 based |
static String |
requireGroupsDisplayExtensionSuffix(int index)
display extension of group for includeExcludeMinusAndGroup, index is 1 based |
static String |
requireGroupsExtensionSuffix(int index)
extension of group for includeExcludeMinusAndGroup, index is 1 based |
static String |
systemOfRecordAndIncludesDescription(String overallGroupExtension,
String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes systemOfRecordAndIncludes description |
static String |
systemOfRecordAndIncludesDisplayExtensionSuffix()
substitute and return systemOfRecordAndIncludes name suffix |
static String |
systemOfRecordAndIncludesExtensionSuffix()
substitute and return systemOfRecordAndIncludes id suffix |
static String |
systemOfRecordDescription(String overallGroupExtension,
String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes systemOfRecord description |
static String |
systemOfRecordDisplayExtensionSuffix()
substitute and return overall systemOfRecord suffix |
static String |
systemOfRecordExtensionSuffix()
substitute and return system of record id suffix |
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 GroupTypeTupleIncludeExcludeHook()
Method Detail |
---|
public static void registerHookIfNecessary(boolean tryAgainIfNotBefore)
tryAgainIfNotBefore
- public 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 String convertToOverall(String extension)
extension
- is overall extension or system of record extension
public static Set<Group> relatedGroups(Group group)
group
-
public static void main(String[] args)
args
- public static void manageIncludesExcludesAndGroups(GrouperSession grouperSession, Group typedGroup, String summaryForLog)
grouperSession
- typedGroup
- summaryForLog
- some string that will be logged to debug...public static String excludeDescription(String overallGroupExtension, String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static String excludeDisplayExtensionSuffix()
public static String excludeExtensionSuffix()
public static void manageIncludesExcludesAndGroups(Group typedGroup, boolean isIncludeExclude, Set<Group> andGroups, String calledFromForLog)
typedGroup
- isIncludeExclude
- andGroups
- calledFromForLog
- summary of where this is coming from for debug logpublic static String systemOfRecordExtensionSuffix()
public static boolean nameIsIncludeExcludeRequireGroup(String groupName)
groupName
-
public static String includeExtensionSuffix()
public static String includesMinusExcludesExtensionSuffix()
public static String systemOfRecordAndIncludesExtensionSuffix()
public static String systemOfRecordDisplayExtensionSuffix()
public static String includeDisplayExtensionSuffix()
public static String includesMinusExcludesDisplayExtensionSuffix()
public static String requireGroupsExtensionSuffix(int index)
index
-
public static int deleteGroupsIfNotUsed(GrouperSession grouperSession, String groupName, StringBuilder reason, boolean saveIncludesExcludesIfMembers)
grouperSession
- groupName
- if the overall or system of record groupreason
- if you want a reason passed backsaveIncludesExcludesIfMembers
- true if not delete only the includes group and excludes group
if they have members. false, delete anyway
public static String requireGroupsDescription(int index, String overallGroupExtension, String overallGroupDisplayExtension)
index
- overallGroupExtension
- overallGroupDisplayExtension
-
public static String requireGroupsDisplayExtensionSuffix(int index)
index
-
public static String systemOfRecordAndIncludesDisplayExtensionSuffix()
public static String overallDescription(String overallGroupExtension, String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static String systemOfRecordAndIncludesDescription(String overallGroupExtension, String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static String systemOfRecordDescription(String overallGroupExtension, String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static String includeDescription(String overallGroupExtension, String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static String includesMinusExcludesDescription(String overallGroupExtension, String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |