Class XmlImportMain
java.lang.Object
edu.internet2.middleware.grouper.xml.importXml.XmlImportMain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
dbCount
(XmlExportMain xmlExportMain) get a db count of exportable rowsstatic int
dbCountGsh
(XmlExportMain xmlExportMain) get a db count of exportable rowslong
ids to ignorelong
long
org.dom4j.io.SAXReader
long
long
long
uuid translation when uuids are changedcom.thoughtworks.xstream.XStream
void
increment the file countvoid
increment the insert countvoid
increment the file countvoid
increment the file countvoid
increment the update countboolean
static void
logInfoAndPrintToScreen
(String auditEntryProgress) static void
void
processXml
(File importFile) void
processXml
(String importString) void
readonlyWriteLogEntry
(String entry) void
setRecordReport
(boolean isRecordReport)
-
Constructor Details
-
XmlImportMain
public XmlImportMain()
-
-
Method Details
-
main
- Parameters:
args
-
-
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
ids to ignore- Returns:
- ids to ignore
-
getTotalImportFileCount
public long getTotalImportFileCount()- Returns:
- total count
-
processXml
- Parameters:
importFile
-
-
processXml
- Parameters:
importString
-
-
getRecordReportFileCanonicalPath
- Returns:
- the readonlyFileCanonicalPath
-
readonlyWriteLogEntry
- 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
get a db count of exportable rows- Parameters:
xmlExportMain
-- Returns:
- db count
-
dbCountGsh
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
- Parameters:
auditEntryProgress
-
-
getXstream
public com.thoughtworks.xstream.XStream getXstream()- Returns:
- xstream
-