Class XmlImportMain

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

public class XmlImportMain extends Object
  • Constructor Details

    • XmlImportMain

      public XmlImportMain()
  • Method Details

    • 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