From 9d43d7e3d310f495286189eb2ff9ef37899953ec Mon Sep 17 00:00:00 2001 From: insanity Date: Wed, 2 May 2018 12:40:32 +0900 Subject: [PATCH] probeservice --- .../central/module/probe/service/CentralProbeService.java | 6 ++++++ .../central/module/sensor/service/CentralSensorService.java | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) 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;