diff --git a/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemDependencyService.java b/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemDependencyService.java index 3288ba5..0bd615c 100644 --- a/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemDependencyService.java +++ b/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemDependencyService.java @@ -1,8 +1,24 @@ package com.loafle.overflow.module.sensor.service; +import com.loafle.overflow.module.core.annotation.WebappAPI; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.meta.model.MetaSensorDisplayItem; +import com.loafle.overflow.module.meta.model.MetaSensorItemKey; +import com.loafle.overflow.module.sensor.model.SensorItemDependency; + +import java.util.List; +import java.util.Map; + /** * Created by insanity on 17. 9. 20. */ public interface SensorItemDependencyService { + @WebappAPI + SensorItemDependency regist(SensorItemDependency dependency) throws OverflowException; + @WebappAPI + List readAllByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException; + @WebappAPI + Map> readAllByDisplayItems(List displayItems) throws OverflowException; + } diff --git a/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemService.java b/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemService.java index 4042ff3..bf7fc4f 100644 --- a/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemService.java +++ b/src/main/java/com/loafle/overflow/module/sensor/service/SensorItemService.java @@ -1,7 +1,26 @@ package com.loafle.overflow.module.sensor.service; +import com.loafle.overflow.module.core.annotation.WebappAPI; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.core.model.PageParams; +import com.loafle.overflow.module.sensor.model.Sensor; +import com.loafle.overflow.module.sensor.model.SensorItem; +import org.springframework.data.domain.Page; + +import java.util.List; + /** * Created by insanity on 17. 6. 28. */ public interface SensorItemService { + @WebappAPI + SensorItem regist(SensorItem sensorItem) throws OverflowException; + @WebappAPI + boolean registAll(List sensorItemList) throws OverflowException; + @WebappAPI + SensorItem read(String id) throws OverflowException; + @WebappAPI + Page readAllBySensor(Sensor sensor, PageParams pageParams) throws OverflowException; + @WebappAPI + void remove(SensorItem sensorItem) throws OverflowException; } diff --git a/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java b/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java index 9d7005a..b70adb0 100644 --- a/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java +++ b/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java @@ -1,7 +1,39 @@ package com.loafle.overflow.module.sensor.service; +import com.loafle.overflow.module.core.annotation.WebappAPI; +import com.loafle.overflow.module.core.exception.OverflowException; +import com.loafle.overflow.module.core.model.PageParams; +import com.loafle.overflow.module.domain.model.Domain; +import com.loafle.overflow.module.sensor.model.Sensor; +import com.loafle.overflow.module.sensor.model.SensorItem; +import com.loafle.overflow.module.target.model.Target; +import org.springframework.data.domain.Page; + +import java.util.List; + /** * Created by insanity on 17. 6. 28. */ public interface SensorService { + @WebappAPI + Sensor regist(Sensor sensor) throws OverflowException; + @WebappAPI + Sensor read(String id) throws OverflowException; + @WebappAPI + void remove(Sensor sensor) throws OverflowException; + @WebappAPI + Sensor start(Sensor sensor) throws OverflowException; + @WebappAPI + Sensor stop(Sensor sensor) throws OverflowException; + @WebappAPI + Sensor registSensorConfig(Sensor sensor, List sensorItemList, String etcJson) throws OverflowException; + @WebappAPI + String generateSensorConfig(Sensor sensor) throws OverflowException; + + @WebappAPI + Page readAllByDomain(Domain domain, PageParams pageParams) throws OverflowException; + @WebappAPI + Page readAllByInfra(long infraId, PageParams pageParams) throws OverflowException; + @WebappAPI + Page readAllByTarget(Target target, PageParams pageParams) throws OverflowException; } diff --git a/src/main/java/com/loafle/overflow/module/target/service/TargetService.java b/src/main/java/com/loafle/overflow/module/target/service/TargetService.java index 4786fe2..3aa063a 100644 --- a/src/main/java/com/loafle/overflow/module/target/service/TargetService.java +++ b/src/main/java/com/loafle/overflow/module/target/service/TargetService.java @@ -1,5 +1,6 @@ package com.loafle.overflow.module.target.service; +import com.loafle.overflow.module.core.annotation.WebappAPI; import com.loafle.overflow.module.core.exception.OverflowException; import com.loafle.overflow.module.target.model.Target; @@ -7,7 +8,10 @@ import com.loafle.overflow.module.target.model.Target; * Created by insanity on 17. 6. 28. */ public interface TargetService { + @WebappAPI Target regist(Target target) throws OverflowException; + @WebappAPI Target read(String id) throws OverflowException; + @WebappAPI void remove(Target target) throws OverflowException; }