edu.internet2.middleware.grouper.registry
Class RegistryReset

java.lang.Object
  extended by edu.internet2.middleware.grouper.registry.RegistryReset

public class RegistryReset
extends Object

Perform low-level operations on the Groups Registry.

WARNING: Do not run the methods expose by this class against your Grouper installation unless you know what you are doing. It will delete data.

Version:
$Id: RegistryReset.java,v 1.13 2009-10-23 15:28:31 tzeller Exp $
Author:
blair christensen.

Constructor Summary
RegistryReset()
           
 
Method Summary
 void _addSubjects()
           
static void _addSubjects(int start, int end)
           
static void internal_resetRegistryAndAddTestSubjects()
           
static void internal_resetRegistryAndAddTestSubjects(boolean includeTypesAndFields)
           
static void main(String[] args)
          Reset the Groups Registry.
static void reset()
          Attempt to reset the Groups Registry to a pristine state.
static void reset(boolean promptUser, boolean includeTypesAndFields)
          Attempt to reset the Groups Registry to a pristine state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryReset

public RegistryReset()
Method Detail

main

public static void main(String[] args)
Reset the Groups Registry.

WARNING: This is a destructive act and will delete all groups, stems, members, memberships and subjects from your Groups Registry. Do not run this unless that is what you want.

 % java edu.internet2.middleware.grouper.RegistryReset
 

Parameters:
args -

reset

public static void reset()
Attempt to reset the Groups Registry to a pristine state.


reset

public static void reset(boolean promptUser,
                         boolean includeTypesAndFields)
Attempt to reset the Groups Registry to a pristine state.

Parameters:
promptUser -
includeTypesAndFields -

internal_resetRegistryAndAddTestSubjects

public static void internal_resetRegistryAndAddTestSubjects()

internal_resetRegistryAndAddTestSubjects

public static void internal_resetRegistryAndAddTestSubjects(boolean includeTypesAndFields)
Parameters:
includeTypesAndFields -

_addSubjects

public void _addSubjects()
                  throws GrouperException
Throws:
GrouperException

_addSubjects

public static void _addSubjects(int start,
                                int end)
                         throws GrouperException
Throws:
GrouperException