edu.internet2.middleware.grouper.xml.importXml
Class XmlImportMain

java.lang.Object
  extended by edu.internet2.middleware.grouper.xml.importXml.XmlImportMain

public class XmlImportMain
extends Object


Constructor Summary
XmlImportMain()
           
 
Method Summary
static int dbCount(XmlExportMain xmlExportMain)
          get a db count of exportable rows
static int dbCountGsh(XmlExportMain xmlExportMain)
          get a db count of exportable rows
 long getCurrentRecordIndex()
           
 Set<String> getIdsToIgnore()
          ids to ignore
 long getInsertCount()
           
 long getOriginalDbCount()
           
 org.dom4j.io.SAXReader getReader()
           
 String getRecordReportFileCanonicalPath()
           
 long getSkipCount()
           
 long getTotalImportFileCount()
           
 long getUpdateCount()
           
 Map<String,String> getUuidTranslation()
          uuid translation when uuids are changed
 com.thoughtworks.xstream.XStream getXstream()
           
 void incrementCurrentCount()
          increment the file count
 void incrementInsertCount()
          increment the insert count
 void incrementSkipCount()
          increment the file count
 void incrementTotalImportFileCount()
          increment the file count
 void incrementUpdateCount()
          increment the update count
 boolean isRecordReport()
           
static void logInfoAndPrintToScreen(String auditEntryProgress)
           
static void main(String[] args)
           
 void processXml(File importFile)
           
 void processXml(String importString)
           
 void readonlyWriteLogEntry(String entry)
           
 void setRecordReport(boolean isRecordReport)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlImportMain

public XmlImportMain()
Method Detail

main

public static void main(String[] args)
Parameters:
args -

getUuidTranslation

public Map<String,String> getUuidTranslation()
uuid translation when uuids are changed

Returns:
the uuidTranslation

getCurrentRecordIndex

public long getCurrentRecordIndex()
Returns:
the currentCount

getInsertCount

public long getInsertCount()
Returns:
the insertCount

getUpdateCount

public long getUpdateCount()
Returns:
the updateCount

getSkipCount

public long getSkipCount()
Returns:
the skipCount

getIdsToIgnore

public Set<String> getIdsToIgnore()
ids to ignore

Returns:
ids to ignore

getTotalImportFileCount

public long getTotalImportFileCount()
Returns:
total count

processXml

public void processXml(File importFile)
Parameters:
importFile -

processXml

public void processXml(String importString)
Parameters:
importString -

getRecordReportFileCanonicalPath

public String getRecordReportFileCanonicalPath()
Returns:
the readonlyFileCanonicalPath

readonlyWriteLogEntry

public void readonlyWriteLogEntry(String entry)
Parameters:
entry -

getReader

public org.dom4j.io.SAXReader getReader()
Returns:
the reader

incrementTotalImportFileCount

public void incrementTotalImportFileCount()
increment the file count


isRecordReport

public boolean isRecordReport()
Returns:
the record report

setRecordReport

public void setRecordReport(boolean isRecordReport)
Parameters:
isRecordReport - if record report to set

dbCount

public static int dbCount(XmlExportMain xmlExportMain)
get a db count of exportable rows

Parameters:
xmlExportMain -
Returns:
db count

dbCountGsh

public static int dbCountGsh(XmlExportMain xmlExportMain)
get a db count of exportable rows

Parameters:
xmlExportMain -
Returns:
db count

getOriginalDbCount

public long getOriginalDbCount()
Returns:
original db count

incrementCurrentCount

public void incrementCurrentCount()
increment the file count


incrementInsertCount

public void incrementInsertCount()
increment the insert count


incrementSkipCount

public void incrementSkipCount()
increment the file count


incrementUpdateCount

public void incrementUpdateCount()
increment the update count


logInfoAndPrintToScreen

public static void logInfoAndPrintToScreen(String auditEntryProgress)
Parameters:
auditEntryProgress -

getXstream

public com.thoughtworks.xstream.XStream getXstream()
Returns:
xstream