Package org.nuclos.api.service
Interface ImportService
public interface ImportService
-
Method Summary
Modifier and TypeMethodDescriptionrun
(NuclosFile importFile, boolean isTransactional, Class<? extends ImportStructureDefinition>... structureDefClasses) This method executes an import process by which the content of aNuclosFile
is parsed using the given structure definitions and stored in the database afterwards.
-
Method Details
-
run
ImportResult run(NuclosFile importFile, boolean isTransactional, Class<? extends ImportStructureDefinition>... structureDefClasses) throws BusinessException This method executes an import process by which the content of aNuclosFile
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:
ImportResult
- Throws:
BusinessException
-