probeservice

This commit is contained in:
insanity 2018-05-02 12:40:32 +09:00
parent 1870cb5d47
commit 9d43d7e3d3
2 changed files with 6 additions and 1 deletions

View File

@ -65,4 +65,10 @@ public class CentralProbeService implements ProbeService {
return this.probeDAO.save(p); 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);
}
} }

View File

@ -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.commons.utils.PageUtil;
import com.loafle.overflow.central.module.generator.service.SensorConfigGenerator; import com.loafle.overflow.central.module.generator.service.SensorConfigGenerator;
import com.loafle.overflow.central.module.sensor.dao.SensorDAO; 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.exception.OverflowException;
import com.loafle.overflow.core.model.PageParams; import com.loafle.overflow.core.model.PageParams;
import com.loafle.overflow.model.domain.Domain; import com.loafle.overflow.model.domain.Domain;