Class PITUtils
java.lang.Object
edu.internet2.middleware.grouper.pit.PITUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteInactiveGroup(PITGroup pitGroup) Delete point in time group.static voiddeleteInactiveGroup(String groupName) Delete point in time group by group name.static voiddeleteInactiveObjectsInStem(PITStem pitStem, boolean printOutput) Delete point in time objects in a stem.static voiddeleteInactiveObjectsInStem(String stemName, boolean printOutput) Delete point in time objects in a stem by stem name.static longdeleteInactiveRecords(Date date, boolean printOutput) Delete point in time records that ended before the given date.static voiddeleteInactiveStem(PITStem pitStem, boolean printOutput) Delete point in time stem.static voiddeleteInactiveStem(String stemName, boolean printOutput) Delete point in time stem by stem name.
-
Constructor Details
-
PITUtils
public PITUtils()
-
-
Method Details
-
deleteInactiveRecords
Delete point in time records that ended before the given date.- Parameters:
date-printOutput-- Returns:
- the number of records
-
deleteInactiveGroup
Delete point in time group by group name. If multiple inactive groups exist by this group name, they will all be deleted.- Parameters:
groupName-
-
deleteInactiveGroup
Delete point in time group.- Parameters:
pitGroup-
-
deleteInactiveStem
Delete point in time stem by stem name. If multiple inactive stems exist by this stem name, they will all be deleted.- Parameters:
stemName-printOutput-
-
deleteInactiveStem
Delete point in time stem.- Parameters:
pitStem-printOutput-
-
deleteInactiveObjectsInStem
Delete point in time objects in a stem by stem name. This includes child stems, groups, attribute def names, and attribute defs. If multiple stems exist by this stem name, inactive objects in all of them will be deleted.- Parameters:
stemName-printOutput-
-
deleteInactiveObjectsInStem
Delete point in time objects in a stem. This includes child stems, groups, attribute def names, and attribute defs.- Parameters:
pitStem-printOutput-
-