This commit is contained in:
geek 2018-04-23 19:00:07 +09:00
parent 3df5b85d0d
commit 0e23756196
4 changed files with 71 additions and 0 deletions

View File

@ -1,8 +1,24 @@
package com.loafle.overflow.module.sensor.service; 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. * Created by insanity on 17. 9. 20.
*/ */
public interface SensorItemDependencyService { 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;
} }

View File

@ -1,7 +1,26 @@
package com.loafle.overflow.module.sensor.service; 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. * Created by insanity on 17. 6. 28.
*/ */
public interface SensorItemService { 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;
} }

View File

@ -1,7 +1,39 @@
package com.loafle.overflow.module.sensor.service; 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. * Created by insanity on 17. 6. 28.
*/ */
public interface SensorService { 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;
} }

View File

@ -1,5 +1,6 @@
package com.loafle.overflow.module.target.service; 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.core.exception.OverflowException;
import com.loafle.overflow.module.target.model.Target; 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. * Created by insanity on 17. 6. 28.
*/ */
public interface TargetService { public interface TargetService {
@WebappAPI
Target regist(Target target) throws OverflowException; Target regist(Target target) throws OverflowException;
@WebappAPI
Target read(String id) throws OverflowException; Target read(String id) throws OverflowException;
@WebappAPI
void remove(Target target) throws OverflowException; void remove(Target target) throws OverflowException;
} }