Interface ImportService

  • All Known Implementing Classes:
    DefaultImportService

    public interface ImportService
    Service for importing data using impex extension.
    Since:
    4.0
    Spring Bean ID:
    importService
    • Field Detail

      • DISTRIBUTED_IMPEX_GLOBAL_FLAG

        static final java.lang.String DISTRIBUTED_IMPEX_GLOBAL_FLAG
        See Also:
        Constant Field Values
    • Method Detail

      • importData

        ImportResult importData​(ImpExResource script)
        Imports platform data using given impex import script. Default parameters are set as when creating an empty ImportConfig, so execution will be synchronous for example. Returns a result object where status and problem info can be accessed from.
        Parameters:
        script - import script
        Returns:
        result of import
      • importData

        ImportResult importData​(ImportConfig config)
        Imports platform data. The import is configured by given configuration object. Please pay attention for the defaults of parameters not explicitly configured. For example the import will be executed synchronous if not reconfigured. Returns a result object where status and problem info can be accessed from. If executed asynchronous the resulting status of import can only be accessed if ImportResult.isFinished() returns true.
        Parameters:
        config - export configuration
        Returns:
        result of export
      • collectImportErrors

        java.util.stream.Stream<? extends ImpExError> collectImportErrors​(ImportResult result)
        Allows to collect import error objects built from import result dump.
        Parameters:
        result - ImportResult from an import operation
        Returns:
        Stream of ImpExError objects.