Mission

The Exporter Service ensures that the integration plugin only needs to call a few end points and that many different functionalities are only available to the RDS system. This ensures that no information is available to the outside world as long as authentication by the plugin is ensured.

The export of files is done based on previously set research projects in the Research Manager.

The service can also be used as importer by swapping the export services in the corresponding research project (as long as the service supports this).

OpenAPI

lib.ExporterService

lib.Research

Research

Research(self,
         userId=None,
         researchIndex=None,
         researchId=None,
         testing=False)

getServices

Research.getServices()

Returns all services, which are currently configured in the research project.

getServicesImport

Research.getServicesImport()

Returns all services, which are currently configured as import in the research project.

getServicesExport

Research.getServicesExport()

Returns all services, which are currently configured as export in the research project.

synchronization

Research.synchronization()

Synchronize all files between import services and export services.

addFile

Research.addFile(*args, **kwargs)

Wrapper function to call addFile in all export services objects with parameters.

removeAllFiles

Research.removeAllFiles()

Remove all files in export services.

Returns a boolean.

removeFile

Research.removeFile(filepath)

Remove file with given filepath in all export services.

removeFileFromService

Research.removeFileFromService(file_id, service)

Remove file with id in export service.

lib.Service

Service

Service(self,
        servicename,
        userId,
        researchIndex,
        fileStorage=False,
        metadata=False,
        customProperties: list = None,
        testing=False)

getFiles

Service.getFiles(getContent=False)

Returns a generator to iterate over.

Returns the filepath string and the content of the file in the current used service.