edu.internet2.middleware.grouper.misc
Class SyncPITTables

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

public class SyncPITTables
extends Object

Author:
shilen

Constructor Summary
SyncPITTables()
           
 
Method Summary
 void clearReport()
          clear report
 SyncPITTables createReport(boolean createReport)
          Whether or not to create a report.
 String getDetailedOutput()
           
 SyncPITTables logDetails(boolean logDetails)
          Whether or not to log details.
 long processAllDuplicates()
          Find and delete active entries in point in time tables that are duplicates.
 long processDuplicates(GrouperDAO dao)
           
 long processMissingActivePITAttributeAssignActions()
          Add missing point in time actions.
 long processMissingActivePITAttributeAssignActionSets()
          Add missing point in time action sets.
 long processMissingActivePITAttributeAssigns()
          Add missing point in time attribute assign.
 long processMissingActivePITAttributeAssignValues()
          Add missing point in time attribute assign values.
 long processMissingActivePITAttributeDefNames()
          Add missing point in time attribute def names.
 long processMissingActivePITAttributeDefNameSets()
          Add missing point in time attribute def name sets.
 long processMissingActivePITAttributeDefs()
          Add missing point in time attribute defs.
 long processMissingActivePITFields()
          Add missing point in time fields.
 long processMissingActivePITGroups()
          Add missing point in time groups.
 long processMissingActivePITGroupSets()
          Add missing point in time group sets.
 long processMissingActivePITGroupSetsSecondPass()
          Add missing point in time group sets.
 long processMissingActivePITMembers()
          Add missing point in time members.
 long processMissingActivePITMemberships()
          Add missing point in time memberships.
 long processMissingActivePITRoleSets()
          Add missing point in time role sets.
 long processMissingActivePITStems()
          Add missing point in time stems.
 long processMissingInactivePITAttributeAssignActions()
          End point in time actions that are currently active but should be inactive.
 long processMissingInactivePITAttributeAssignActionSets()
          End point in time action sets that are currently active but should be inactive.
 long processMissingInactivePITAttributeAssigns()
          End point in time attribute assigns that are currently active but should be inactive.
 long processMissingInactivePITAttributeAssignValues()
          End point in time attribute assign values that are currently active but should be inactive.
 long processMissingInactivePITAttributeDefNames()
          End point in time attribute def names that are currently active but should be inactive.
 long processMissingInactivePITAttributeDefNameSets()
          End point in time attribute def name sets that are currently active but should be inactive.
 long processMissingInactivePITAttributeDefs()
          End point in time attribute defs that are currently active but should be inactive.
 long processMissingInactivePITFields()
          End point in time fields that are currently active but should be inactive.
 long processMissingInactivePITGroups()
          End point in time groups that are currently active but should be inactive.
 long processMissingInactivePITGroupSets()
          End point in time group sets that are currently active but should be inactive.
 long processMissingInactivePITMembers()
          End point in time members that are currently active but should be inactive.
 long processMissingInactivePITMemberships()
          End point in time memberships that are currently active but should be inactive.
 long processMissingInactivePITRoleSets()
          End point in time role sets that are currently active but should be inactive.
 long processMissingInactivePITStems()
          End point in time stems that are currently active but should be inactive.
 SyncPITTables saveUpdates(boolean saveUpdates)
          Whether or not to actually save updates.
 SyncPITTables sendFlattenedNotifications(boolean sendNotifications)
          Whether or not to send flattened notifications for memberships and privileges.
 SyncPITTables sendPermissionNotifications(boolean sendNotifications)
          Whether or not to send notifications for permissions.
 SyncPITTables showResults(boolean showResults)
          Whether or not to print out results of what's being done.
 long syncAllPITTables()
          Sync all point in time tables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncPITTables

public SyncPITTables()
Method Detail

showResults

public SyncPITTables showResults(boolean showResults)
Whether or not to print out results of what's being done. Defaults to true.

Parameters:
showResults -
Returns:
SyncPITTables

saveUpdates

public SyncPITTables saveUpdates(boolean saveUpdates)
Whether or not to actually save updates. Defaults to true.

Parameters:
saveUpdates -
Returns:
SyncPITTables

logDetails

public SyncPITTables logDetails(boolean logDetails)
Whether or not to log details. Defaults to true.

Parameters:
logDetails -
Returns:
AddMissingGroupSets

createReport

public SyncPITTables createReport(boolean createReport)
Whether or not to create a report. Defaults to false.

Parameters:
createReport -
Returns:
AddMissingGroupSets

sendFlattenedNotifications

public SyncPITTables sendFlattenedNotifications(boolean sendNotifications)
Whether or not to send flattened notifications for memberships and privileges. If true, notifications will be based on configuration. If false, notifications will not be sent regardless of configuration. Defaults to true.

Parameters:
sendNotifications -
Returns:
SyncPITTables

sendPermissionNotifications

public SyncPITTables sendPermissionNotifications(boolean sendNotifications)
Whether or not to send notifications for permissions. If true, notifications will be based on configuration. If false, notifications will not be sent regardless of configuration. Defaults to true.

Parameters:
sendNotifications -
Returns:
SyncPITTables

syncAllPITTables

public long syncAllPITTables()
Sync all point in time tables

Returns:
the number of updates made

getDetailedOutput

public String getDetailedOutput()
Returns:
detailed output of the sync

clearReport

public void clearReport()
clear report


processMissingActivePITMemberships

public long processMissingActivePITMemberships()
Add missing point in time memberships.

Returns:
the number of missing point in time memberships

processMissingActivePITAttributeAssigns

public long processMissingActivePITAttributeAssigns()
Add missing point in time attribute assign.

Returns:
the number of missing point in time attribute assigns

processMissingActivePITAttributeAssignValues

public long processMissingActivePITAttributeAssignValues()
Add missing point in time attribute assign values.

Returns:
the number of missing point in time attribute assign values

processMissingActivePITAttributeDefs

public long processMissingActivePITAttributeDefs()
Add missing point in time attribute defs.

Returns:
the number of missing point in time attribute defs

processMissingActivePITAttributeDefNames

public long processMissingActivePITAttributeDefNames()
Add missing point in time attribute def names.

Returns:
the number of missing point in time attribute def names

processMissingActivePITAttributeDefNameSets

public long processMissingActivePITAttributeDefNameSets()
Add missing point in time attribute def name sets.

Returns:
the number of missing point in time attribute def name sets

processMissingActivePITGroups

public long processMissingActivePITGroups()
Add missing point in time groups.

Returns:
the number of missing point in time groups

processMissingActivePITGroupSets

public long processMissingActivePITGroupSets()
Add missing point in time group sets.

Returns:
the number of missing point in time group sets

processMissingActivePITGroupSetsSecondPass

public long processMissingActivePITGroupSetsSecondPass()
Add missing point in time group sets. (Second pass looking for issues with effective groupSets.)

Returns:
the number of missing point in time group sets

processMissingActivePITRoleSets

public long processMissingActivePITRoleSets()
Add missing point in time role sets.

Returns:
the number of missing point in time role sets

processMissingActivePITFields

public long processMissingActivePITFields()
Add missing point in time fields.

Returns:
the number of missing point in time fields

processMissingActivePITMembers

public long processMissingActivePITMembers()
Add missing point in time members.

Returns:
the number of missing point in time members

processMissingActivePITStems

public long processMissingActivePITStems()
Add missing point in time stems.

Returns:
the number of missing point in time stems

processMissingActivePITAttributeAssignActions

public long processMissingActivePITAttributeAssignActions()
Add missing point in time actions.

Returns:
the number of missing point in time actions

processMissingActivePITAttributeAssignActionSets

public long processMissingActivePITAttributeAssignActionSets()
Add missing point in time action sets.

Returns:
the number of missing point in time action sets

processMissingInactivePITMemberships

public long processMissingInactivePITMemberships()
End point in time memberships that are currently active but should be inactive.

Returns:
the number of point in time memberships to end

processMissingInactivePITAttributeAssigns

public long processMissingInactivePITAttributeAssigns()
End point in time attribute assigns that are currently active but should be inactive.

Returns:
the number of point in time attribute assigns to end

processMissingInactivePITAttributeAssignValues

public long processMissingInactivePITAttributeAssignValues()
End point in time attribute assign values that are currently active but should be inactive.

Returns:
the number of point in time attribute assign values to end

processMissingInactivePITAttributeDefs

public long processMissingInactivePITAttributeDefs()
End point in time attribute defs that are currently active but should be inactive.

Returns:
the number of point in time attribute defs to end

processMissingInactivePITAttributeDefNames

public long processMissingInactivePITAttributeDefNames()
End point in time attribute def names that are currently active but should be inactive.

Returns:
the number of point in time attribute def names to end

processMissingInactivePITAttributeDefNameSets

public long processMissingInactivePITAttributeDefNameSets()
End point in time attribute def name sets that are currently active but should be inactive.

Returns:
the number of point in time attribute def name sets to end

processMissingInactivePITGroups

public long processMissingInactivePITGroups()
End point in time groups that are currently active but should be inactive.

Returns:
the number of point in time groups to end

processMissingInactivePITGroupSets

public long processMissingInactivePITGroupSets()
End point in time group sets that are currently active but should be inactive.

Returns:
the number of point in time group sets to end

processMissingInactivePITRoleSets

public long processMissingInactivePITRoleSets()
End point in time role sets that are currently active but should be inactive.

Returns:
the number of point in time role sets to end

processMissingInactivePITFields

public long processMissingInactivePITFields()
End point in time fields that are currently active but should be inactive.

Returns:
the number of point in time fields to end

processMissingInactivePITMembers

public long processMissingInactivePITMembers()
End point in time members that are currently active but should be inactive.

Returns:
the number of point in time members to end

processMissingInactivePITStems

public long processMissingInactivePITStems()
End point in time stems that are currently active but should be inactive.

Returns:
the number of point in time stems to end

processMissingInactivePITAttributeAssignActions

public long processMissingInactivePITAttributeAssignActions()
End point in time actions that are currently active but should be inactive.

Returns:
the number of point in time actions to end

processMissingInactivePITAttributeAssignActionSets

public long processMissingInactivePITAttributeAssignActionSets()
End point in time action sets that are currently active but should be inactive.

Returns:
the number of point in time action sets to end

processAllDuplicates

public long processAllDuplicates()
Find and delete active entries in point in time tables that are duplicates. This will keep the oldest entry based on the start time.

Returns:
number of duplicates

processDuplicates

public long processDuplicates(GrouperDAO dao)
Parameters:
dao -
Returns:
number of duplicates