diff --git a/src/main/java/com/loafle/overflow/central/module/probe/service/CentralProbeService.java b/src/main/java/com/loafle/overflow/central/module/probe/service/CentralProbeService.java index e5d4c6f..d3bbde2 100644 --- a/src/main/java/com/loafle/overflow/central/module/probe/service/CentralProbeService.java +++ b/src/main/java/com/loafle/overflow/central/module/probe/service/CentralProbeService.java @@ -65,4 +65,10 @@ public class CentralProbeService implements ProbeService { return this.probeDAO.save(p); } + public Probe modifyDisplayName(long probeId, String displayName) { + Probe probe = this.probeDAO.findOne(probeId); + probe.setDisplayName(displayName); + return this.probeDAO.save(probe); + } + } diff --git a/src/main/java/com/loafle/overflow/central/module/sensor/service/CentralSensorService.java b/src/main/java/com/loafle/overflow/central/module/sensor/service/CentralSensorService.java index 577b4b6..6d1ed75 100644 --- a/src/main/java/com/loafle/overflow/central/module/sensor/service/CentralSensorService.java +++ b/src/main/java/com/loafle/overflow/central/module/sensor/service/CentralSensorService.java @@ -3,7 +3,6 @@ package com.loafle.overflow.central.module.sensor.service; import com.loafle.overflow.central.commons.utils.PageUtil; import com.loafle.overflow.central.module.generator.service.SensorConfigGenerator; import com.loafle.overflow.central.module.sensor.dao.SensorDAO; -import com.loafle.overflow.central.module.target.service.CentralTargetService; import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.model.PageParams; import com.loafle.overflow.model.domain.Domain;