diff --git a/pom.xml b/pom.xml
index 8295bdf..60b54b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,7 @@
com.loafle.overflow
commons-java
jar
- 1.0.105-SNAPSHOT
+ 1.0.106-SNAPSHOT
com.loafle.overflow.commons-java
diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaSensorStatus.java b/src/main/java/com/loafle/overflow/model/meta/MetaSensorStatus.java
index 5c3ad99..ce861b2 100644
--- a/src/main/java/com/loafle/overflow/model/meta/MetaSensorStatus.java
+++ b/src/main/java/com/loafle/overflow/model/meta/MetaSensorStatus.java
@@ -68,4 +68,25 @@ public class MetaSensorStatus {
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
+
+ public static enum Enum {
+ STOPPED((short) 1), RUNNING((short) 2),;
+
+ private final Short value;
+
+ /**
+ * @param value
+ */
+ Enum(final Short value) {
+ this.value = value;
+ }
+
+ public Short getValue() {
+ return this.value;
+ }
+
+ public MetaSensorStatus to() {
+ return new MetaSensorStatus(this.value);
+ }
+ }
}
diff --git a/src/main/java/com/loafle/overflow/service/central/sensor/SensorItemService.java b/src/main/java/com/loafle/overflow/service/central/sensor/SensorItemService.java
index 8f72895..f47584f 100644
--- a/src/main/java/com/loafle/overflow/service/central/sensor/SensorItemService.java
+++ b/src/main/java/com/loafle/overflow/service/central/sensor/SensorItemService.java
@@ -2,9 +2,7 @@ package com.loafle.overflow.service.central.sensor;
import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException;
-import com.loafle.overflow.core.model.PageParams;
import com.loafle.overflow.model.sensor.SensorItem;
-import org.springframework.data.domain.Page;
import java.util.List;
@@ -12,18 +10,14 @@ 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;
+ SensorItem read(Long id) throws OverflowException;
@WebappAPI
- SensorItem read(String id) throws OverflowException;
+ List readAllBySensorID(Long sensorID) throws OverflowException;
@WebappAPI
- Page readAllBySensorID(Long sensorID, PageParams pageParams) throws OverflowException;
+ void remove(Long sensorItemID) throws OverflowException;
- @WebappAPI
- void remove(SensorItem sensorItem) throws OverflowException;
}
diff --git a/src/main/java/com/loafle/overflow/service/central/sensor/SensorService.java b/src/main/java/com/loafle/overflow/service/central/sensor/SensorService.java
index 6492dce..570dc7c 100644
--- a/src/main/java/com/loafle/overflow/service/central/sensor/SensorService.java
+++ b/src/main/java/com/loafle/overflow/service/central/sensor/SensorService.java
@@ -15,6 +15,9 @@ public interface SensorService {
@WebappAPI
Sensor regist(Sensor sensor, List metaDisplayItemMappings) throws OverflowException;
+ @WebappAPI
+ Sensor modify(Long sensorID, List metaDisplayItemMappings) throws OverflowException;
+
@WebappAPI
Sensor read(Long id) throws OverflowException;