ing
This commit is contained in:
parent
3df5b85d0d
commit
0e23756196
|
@ -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<MetaSensorItemKey> readAllByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException;
|
||||
@WebappAPI
|
||||
Map<String, List<MetaSensorItemKey>> readAllByDisplayItems(List<MetaSensorDisplayItem> displayItems) throws OverflowException;
|
||||
|
||||
}
|
||||
|
|
|
@ -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<SensorItem> sensorItemList) throws OverflowException;
|
||||
@WebappAPI
|
||||
SensorItem read(String id) throws OverflowException;
|
||||
@WebappAPI
|
||||
Page<SensorItem> readAllBySensor(Sensor sensor, PageParams pageParams) throws OverflowException;
|
||||
@WebappAPI
|
||||
void remove(SensorItem sensorItem) throws OverflowException;
|
||||
}
|
||||
|
|
|
@ -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<SensorItem> sensorItemList, String etcJson) throws OverflowException;
|
||||
@WebappAPI
|
||||
String generateSensorConfig(Sensor sensor) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByDomain(Domain domain, PageParams pageParams) throws OverflowException;
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByInfra(long infraId, PageParams pageParams) throws OverflowException;
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByTarget(Target target, PageParams pageParams) throws OverflowException;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user