added service

noauth probe
This commit is contained in:
snoop 2017-06-28 15:06:52 +09:00
parent 7428634bf0
commit be7b667618

View File

@ -0,0 +1,35 @@
package com.loafle.overflow.module.noauthprobe.service;
import com.loafle.overflow.module.domain.model.Domain;
import com.loafle.overflow.module.noauthprobe.dao.NoAuthProbeDAO;
import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by snoop on 17. 6. 28.
*/
@Service
public class NoAuthProbeService {
@Autowired
private NoAuthProbeDAO noAuthProbeDAO;
public void regist(NoAuthProbe noAuthProbe) {
this.noAuthProbeDAO.save(noAuthProbe);
}
public List<NoAuthProbe> readAllByDomain(Domain domain) {
return this.noAuthProbeDAO.findAllByDomain(domain);
}
public NoAuthProbe read(long id) {
return this.noAuthProbeDAO.findOne(id);
}
}