@Override public InformationSource writeReadoutsToSource(InformationSource source, List<Sensor> sensors) { final InformationSource src = sourceService.getWithSensors(source.getId()); addNewSensors(sensors, src); sourceService.save(src); associateReadoutsWithPersistentSensors(src, sensors); sourceService.save(src); return source; }
@Override public void deleteSource(InformationSource source) { sourceService.delete(source); }
@Override public List<InformationSource> loadSourcesFromDB() { return sourceService.getAll(); }
@Override public InformationSource updateSource(InformationSource source) { return sourceService.save(source); }