Package org.nuclos.api.provider
Class ImportProvider
java.lang.Object
org.nuclos.api.provider.ImportProvider
ImportProvider provides methods to import data into Nuclos- Author:
- reichama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportResultrun(NuclosFile importFile, boolean isTransactional, Class<? extends ImportStructureDefinition>... structureDefClasses) This method executes an import process by which the content of aNuclosFileis parsed using the given structure definitions and stored in the database afterwards.voidsetImportService(ImportService repService)
-
Constructor Details
-
ImportProvider
ImportProvider()
-
-
Method Details
-
setImportService
-
run
public static ImportResult run(NuclosFile importFile, boolean isTransactional, Class<? extends ImportStructureDefinition>... structureDefClasses) throws BusinessException This method executes an import process by which the content of aNuclosFileis 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
-