Class XmlImportProvider

java.lang.Object
org.nuclos.api.provider.XmlImportProvider

public class XmlImportProvider extends Object
XmlImportProvider provides methods to import XML data into Nuclos.
Author:
Thomas Pasch
  • Constructor Details

    • XmlImportProvider

      XmlImportProvider()
  • Method Details

    • setXmlImportService

      public void setXmlImportService(XmlImportService repService)
    • run

      public static ImportResult run(NuclosFile importFile, boolean isTransactional, Class<? extends XmlImportStructureDefinition>... structureDefClasses) throws BusinessException
      This method executes an import process by which the content of a NuclosFile is parsed using the given structure definitions and stored in the database afterwards. The import can be handled as one atomic transaction with a complete rollback for one occurring error by setting argument 'isTransactional' to true
      Parameters:
      importFile -
      isTransactional -
      structureDefClasses -
      Returns:
      Throws:
      BusinessException