@Service
public class DetectionParametersService
extends java.lang.Object
Constructor and Description |
---|
DetectionParametersService(MonitoredAreaRepository monitoredAreaRepository,
DetectionParametersRepository detectionParametersRepository,
MQTTManager mqttManager) |
Modifier and Type | Method and Description |
---|---|
DetectionParameters |
getAreaParameters(java.util.UUID areaId)
Returns detection parameters belonging to a monitored area
|
DetectionParameters |
setAreaParameters(java.util.UUID areaId,
ParametersView newParams)
Change the parameters of a monitored area
|
@Autowired public DetectionParametersService(MonitoredAreaRepository monitoredAreaRepository, DetectionParametersRepository detectionParametersRepository, MQTTManager mqttManager)
public DetectionParameters getAreaParameters(java.util.UUID areaId)
areaId
- ID of the monitored area (must be an existing monitored area,
throws AreaNotFoundException if not)public DetectionParameters setAreaParameters(java.util.UUID areaId, ParametersView newParams)
areaId
- ID of the monitored area (must be an existing monitored area,
throws AreaNotFoundException if not)newParams
- the enw parameters