class DetectorServiceImpl implements DetectorService {

    @Override
    public void toggleDetector(String uuid, Boolean enabled) {
        Detector detector = repository.findByUuid(uuid);
        detector.setEnabled(enabled);
        repository.save(detector);
    }

}