SensorItemService
This commit is contained in:
parent
30c3cef67b
commit
26fa876b27
2
pom.xml
2
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<groupId>com.loafle.overflow</groupId>
|
<groupId>com.loafle.overflow</groupId>
|
||||||
<artifactId>commons-java</artifactId>
|
<artifactId>commons-java</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0.105-SNAPSHOT</version>
|
<version>1.0.106-SNAPSHOT</version>
|
||||||
<name>com.loafle.overflow.commons-java</name>
|
<name>com.loafle.overflow.commons-java</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -68,4 +68,25 @@ public class MetaSensorStatus {
|
||||||
public void setCreateDate(Date createDate) {
|
public void setCreateDate(Date createDate) {
|
||||||
this.createDate = 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,7 @@ package com.loafle.overflow.service.central.sensor;
|
||||||
|
|
||||||
import com.loafle.overflow.core.annotation.WebappAPI;
|
import com.loafle.overflow.core.annotation.WebappAPI;
|
||||||
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.model.sensor.SensorItem;
|
import com.loafle.overflow.model.sensor.SensorItem;
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -12,18 +10,14 @@ import java.util.List;
|
||||||
* Created by insanity on 17. 6. 28.
|
* Created by insanity on 17. 6. 28.
|
||||||
*/
|
*/
|
||||||
public interface SensorItemService {
|
public interface SensorItemService {
|
||||||
@WebappAPI
|
|
||||||
SensorItem regist(SensorItem sensorItem) throws OverflowException;
|
|
||||||
|
|
||||||
@WebappAPI
|
@WebappAPI
|
||||||
boolean registAll(List<SensorItem> sensorItemList) throws OverflowException;
|
SensorItem read(Long id) throws OverflowException;
|
||||||
|
|
||||||
@WebappAPI
|
@WebappAPI
|
||||||
SensorItem read(String id) throws OverflowException;
|
List<SensorItem> readAllBySensorID(Long sensorID) throws OverflowException;
|
||||||
|
|
||||||
@WebappAPI
|
@WebappAPI
|
||||||
Page<SensorItem> readAllBySensorID(Long sensorID, PageParams pageParams) throws OverflowException;
|
void remove(Long sensorItemID) throws OverflowException;
|
||||||
|
|
||||||
@WebappAPI
|
|
||||||
void remove(SensorItem sensorItem) throws OverflowException;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,9 @@ public interface SensorService {
|
||||||
@WebappAPI
|
@WebappAPI
|
||||||
Sensor regist(Sensor sensor, List<MetaDisplayItemMapping> metaDisplayItemMappings) throws OverflowException;
|
Sensor regist(Sensor sensor, List<MetaDisplayItemMapping> metaDisplayItemMappings) throws OverflowException;
|
||||||
|
|
||||||
|
@WebappAPI
|
||||||
|
Sensor modify(Long sensorID, List<MetaDisplayItemMapping> metaDisplayItemMappings) throws OverflowException;
|
||||||
|
|
||||||
@WebappAPI
|
@WebappAPI
|
||||||
Sensor read(Long id) throws OverflowException;
|
Sensor read(Long id) throws OverflowException;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user