edu.internet2.middleware.grouper.misc
Class FindBadMemberships

java.lang.Object
  extended by edu.internet2.middleware.grouper.misc.FindBadMemberships

public class FindBadMemberships
extends java.lang.Object

Find bad memberships in the Grouper memberships table. This script is used to find bad memberships in Grouper. If a bad membership is found, a GSH script will be created to resolve the issue.

Since:
1.3.1

Field Summary
static java.io.StringWriter gshScript
          GSH script to fix membership data
static java.io.PrintStream out
           
 
Constructor Summary
FindBadMemberships()
           
 
Method Summary
static long checkAll()
           
static void checkAll(java.io.PrintStream printStream)
           
static long checkComposites()
           
static long checkGroupSets()
          Note that this isn't a complete check of the group set table..
static void clearResults()
          call this before finding bad memberships
static void main(java.lang.String[] args)
           
static void printErrorsToSTOUT(boolean v)
          Set whether to print errors to STDOUT.
static void writeGshScriptToFile()
          Write GSH script to file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public static java.io.PrintStream out

gshScript

public static java.io.StringWriter gshScript
GSH script to fix membership data

Constructor Detail

FindBadMemberships

public FindBadMemberships()
Method Detail

clearResults

public static void clearResults()
call this before finding bad memberships


main

public static void main(java.lang.String[] args)
Parameters:
args -
Since:
1.3.1

checkAll

public static void checkAll(java.io.PrintStream printStream)
                     throws SessionException
Parameters:
printStream -
Throws:
SessionException

checkAll

public static long checkAll()
Returns:
count of bad and missing memberships

printErrorsToSTOUT

public static void printErrorsToSTOUT(boolean v)
Set whether to print errors to STDOUT.

Parameters:
v -

checkGroupSets

public static long checkGroupSets()
Note that this isn't a complete check of the group set table..

Returns:
count of bad and missing group sets

checkComposites

public static long checkComposites()
Returns:
count of bad and missing memberships

writeGshScriptToFile

public static void writeGshScriptToFile()
Write GSH script to file.