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).
Research(self, userId=None, researchIndex=None, researchId=None, testing=False)
Returns all services, which are currently configured in the research project.
Returns all services, which are currently configured as import in the research project.
Returns all services, which are currently configured as export in the research project.
Synchronize all files between import services and export services.
Wrapper function to call addFile in all export services objects with parameters.
folderInFolder (bool): Only if folderInFolder is True, then it will be checked, if service needs a zip for folders in folder upload.
Returns: list: Returns list of booleans, if it succeeds or not. The order follows the self.exportServices order.
Remove all files in export services.
Returns a boolean.
Remove file with given filepath in all export services.
Remove file with id in export service.
Service(self, servicename, userId, researchIndex, fileStorage=False, metadata=False, customProperties: list = None, testing=False)
Returns True, if you have to send zip files, when there are folder in folders. Otherwise False.
Returns: bool: True, if you have to send zip for folder in folders.
Returns a generator to iterate over.
Returns the filepath string and the content of the file in the current used service.
Adds given file with filename to this service.
Args: filename (str): Set the filename of this file. fileContent (io.BytesIO): Set the content of this file.
Returns: bool: Return True, if the file was uploaded successfully, otherwise False.