Class RemoteDatasourceHelper


  • public class RemoteDatasourceHelper
    extends Object
    • Constructor Detail

      • RemoteDatasourceHelper

        public RemoteDatasourceHelper()
    • Method Detail

      • updateExistingDatasource

        public static Datenquelle updateExistingDatasource​(IEntityContext ec,
                                                           IUser user,
                                                           Datenquelle datasource)
        Updates a datasource. Currently only supports type CSV. Checks if the remote datasource is enabled and if the last update was more than the configured interval ago. Errors during the download will be logged in the client protocol.
        Parameters:
        ec - The entity context for accessing the database.
        user - The user who requests the update.
        datasource - the data source to update
        Returns:
        The data source, updated if needed.