class DetectorServiceImpl implements DetectorService {

    @Override
    public void trustDetector(String uuid, Boolean trusted) {
        Detector detector = repository.findByUuid(uuid);
        detector.setTrusted(trusted);
        repository.save(detector);
    }

}