edu.internet2.middleware.grouper.misc
Class SyncFlatTables

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

public class SyncFlatTables
extends java.lang.Object

Author:
shilen

Constructor Summary
SyncFlatTables()
           
 
Method Summary
 long addMissingFlatAttributeDefs()
          add missing flat attr defs
 long addMissingFlatGroups()
          add missing flat groups
 long addMissingFlatMemberships()
          Add missing flat memberships either by adding them directly to the table or by adding a changelog event depending on whether sendNotifications(boolean) is set.
 long addMissingFlatStems()
          add missing flat stems
 void clearReport()
          clear report
 SyncFlatTables createReport(boolean createReport)
          Whether or not to create a report.
 java.lang.String getDetailedOutput()
           
 SyncFlatTables logDetails(boolean logDetails)
          Whether or not to log details.
 long removeBadFlatAttributeDefs()
          remove bad flat attr defs
 long removeBadFlatGroups()
          remove bad flat groups
 long removeBadFlatMemberships()
          Remove bad flat memberships either by removing them directly in the table or by adding a changelog event depending on whether sendNotifications(boolean) is set.
 long removeBadFlatStems()
          remove bad flat stems
 SyncFlatTables saveUpdates(boolean saveUpdates)
          Whether or not to actually save updates.
 SyncFlatTables sendNotifications(boolean sendNotifications)
          Whether or not to send notifications.
 SyncFlatTables showResults(boolean showResults)
          Whether or not to print out results of what's being done.
 long syncAllFlatTables()
          Sync all flat tables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncFlatTables

public SyncFlatTables()
Method Detail

showResults

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

Parameters:
showResults -
Returns:
SyncFlatTables

saveUpdates

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

Parameters:
saveUpdates -
Returns:
SyncFlatTables

logDetails

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

Parameters:
logDetails -
Returns:
AddMissingGroupSets

createReport

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

Parameters:
createReport -
Returns:
AddMissingGroupSets

sendNotifications

public SyncFlatTables sendNotifications(boolean sendNotifications)
Whether or not to send notifications. Defaults to true.

Parameters:
sendNotifications -
Returns:
SyncFlatTables

syncAllFlatTables

public long syncAllFlatTables()
Sync all flat tables

Returns:
the number of updates made

getDetailedOutput

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

clearReport

public void clearReport()
clear report


addMissingFlatAttributeDefs

public long addMissingFlatAttributeDefs()
add missing flat attr defs

Returns:
the number of inserted flat attr defs

addMissingFlatStems

public long addMissingFlatStems()
add missing flat stems

Returns:
the number of inserted flat stems

addMissingFlatMemberships

public long addMissingFlatMemberships()
Add missing flat memberships either by adding them directly to the table or by adding a changelog event depending on whether sendNotifications(boolean) is set.

Returns:
the number of missing flat memberships

addMissingFlatGroups

public long addMissingFlatGroups()
add missing flat groups

Returns:
the number of inserted flat groups

removeBadFlatAttributeDefs

public long removeBadFlatAttributeDefs()
remove bad flat attr defs

Returns:
the number of removed flat attr defs

removeBadFlatStems

public long removeBadFlatStems()
remove bad flat stems

Returns:
the number of removed flat stems

removeBadFlatGroups

public long removeBadFlatGroups()
remove bad flat groups

Returns:
the number of removed flat groups

removeBadFlatMemberships

public long removeBadFlatMemberships()
Remove bad flat memberships either by removing them directly in the table or by adding a changelog event depending on whether sendNotifications(boolean) is set.

Returns:
the number of bad flat memberships