@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 InformationSource updateSource(InformationSource source) { return sourceService.save(source); }