|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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 java.lang.String |
convertToOverall(java.lang.String extension)
convert a system of record extension to an overall extension |
static int |
deleteGroupsIfNotUsed(GrouperSession grouperSession,
java.lang.String groupName,
java.lang.StringBuilder reason,
boolean saveIncludesExcludesIfMembers)
|
static java.lang.String |
excludeDescription(java.lang.String overallGroupExtension,
java.lang.String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes exclude description |
static java.lang.String |
excludeDisplayExtensionSuffix()
substitute and return exclude name suffix |
static java.lang.String |
excludeExtensionSuffix()
substitute and return exclude id suffix |
static java.lang.String |
groupNameFromAndGroupAttributeName(java.lang.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 java.lang.String |
includeDescription(java.lang.String overallGroupExtension,
java.lang.String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes include description |
static java.lang.String |
includeDisplayExtensionSuffix()
substitute and return include name suffix |
static java.lang.String |
includeExtensionSuffix()
substitute and return include id suffix |
static java.lang.String |
includesMinusExcludesDescription(java.lang.String overallGroupExtension,
java.lang.String overallGroupDisplayExtension)
substitute and return includesMinusExcludes description |
static java.lang.String |
includesMinusExcludesDisplayExtensionSuffix()
substitute and return includesMinusExcludes name suffix |
static java.lang.String |
includesMinusExcludesExtensionSuffix()
substitute and return includesMinusExcludes id suffix |
static void |
main(java.lang.String[] args)
|
static void |
manageIncludesExcludesAndGroups(Group typedGroup,
boolean isIncludeExclude,
java.util.Set<Group> andGroups,
java.lang.String calledFromForLog)
change a typed group into include and exclude group lists and andGroups also |
static void |
manageIncludesExcludesAndGroups(GrouperSession grouperSession,
Group typedGroup,
java.lang.String summaryForLog)
|
static boolean |
nameIsIncludeExcludeRequireGroup(java.lang.String groupName)
see if a group name has an include/exclude or requireGroup suffix |
static java.lang.String |
overallDescription(java.lang.String overallGroupExtension,
java.lang.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 java.util.Set<Group> |
relatedGroups(Group group)
return a set of groups including the one passed in, related to this group. |
static java.lang.String |
requireGroupsDescription(int index,
java.lang.String overallGroupExtension,
java.lang.String overallGroupDisplayExtension)
description of group for includeExcludeMinusAndGroup, index is 1 based |
static java.lang.String |
requireGroupsDisplayExtensionSuffix(int index)
display extension of group for includeExcludeMinusAndGroup, index is 1 based |
static java.lang.String |
requireGroupsExtensionSuffix(int index)
extension of group for includeExcludeMinusAndGroup, index is 1 based |
static java.lang.String |
systemOfRecordAndIncludesDescription(java.lang.String overallGroupExtension,
java.lang.String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes systemOfRecordAndIncludes description |
static java.lang.String |
systemOfRecordAndIncludesDisplayExtensionSuffix()
substitute and return systemOfRecordAndIncludes name suffix |
static java.lang.String |
systemOfRecordAndIncludesExtensionSuffix()
substitute and return systemOfRecordAndIncludes id suffix |
static java.lang.String |
systemOfRecordDescription(java.lang.String overallGroupExtension,
java.lang.String overallGroupDisplayExtension)
substitute and return systemOfRecordAndIncludes systemOfRecord description |
static java.lang.String |
systemOfRecordDisplayExtensionSuffix()
substitute and return overall systemOfRecord suffix |
static java.lang.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 java.lang.String groupNameFromAndGroupAttributeName(java.lang.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 java.lang.String convertToOverall(java.lang.String extension)
extension
- is overall extension or system of record extension
public static java.util.Set<Group> relatedGroups(Group group)
group
-
public static void main(java.lang.String[] args)
args
- public static void manageIncludesExcludesAndGroups(GrouperSession grouperSession, Group typedGroup, java.lang.String summaryForLog)
grouperSession
- typedGroup
- summaryForLog
- some string that will be logged to debug...public static java.lang.String excludeDescription(java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static java.lang.String excludeDisplayExtensionSuffix()
public static java.lang.String excludeExtensionSuffix()
public static void manageIncludesExcludesAndGroups(Group typedGroup, boolean isIncludeExclude, java.util.Set<Group> andGroups, java.lang.String calledFromForLog)
typedGroup
- isIncludeExclude
- andGroups
- calledFromForLog
- summary of where this is coming from for debug logpublic static java.lang.String systemOfRecordExtensionSuffix()
public static boolean nameIsIncludeExcludeRequireGroup(java.lang.String groupName)
groupName
-
public static java.lang.String includeExtensionSuffix()
public static java.lang.String includesMinusExcludesExtensionSuffix()
public static java.lang.String systemOfRecordAndIncludesExtensionSuffix()
public static java.lang.String systemOfRecordDisplayExtensionSuffix()
public static java.lang.String includeDisplayExtensionSuffix()
public static java.lang.String includesMinusExcludesDisplayExtensionSuffix()
public static java.lang.String requireGroupsExtensionSuffix(int index)
index
-
public static int deleteGroupsIfNotUsed(GrouperSession grouperSession, java.lang.String groupName, java.lang.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 java.lang.String requireGroupsDescription(int index, java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
index
- overallGroupExtension
- overallGroupDisplayExtension
-
public static java.lang.String requireGroupsDisplayExtensionSuffix(int index)
index
-
public static java.lang.String systemOfRecordAndIncludesDisplayExtensionSuffix()
public static java.lang.String overallDescription(java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static java.lang.String systemOfRecordAndIncludesDescription(java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static java.lang.String systemOfRecordDescription(java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static java.lang.String includeDescription(java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
public static java.lang.String includesMinusExcludesDescription(java.lang.String overallGroupExtension, java.lang.String overallGroupDisplayExtension)
overallGroupExtension
- overallGroupDisplayExtension
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |