Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
09544e1f28
|
@ -17,7 +17,6 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface HistoryDAO extends JpaRepository<History, Long> {
|
||||
|
||||
Page<History> findAllByProbe(Probe probe, Pageable pageable);
|
||||
|
||||
@Query("SELECT h FROM History h WHERE h.probe.id = :#{#probe.id} and h.type.id = :#{#type.id}")
|
||||
|
|
|
@ -15,7 +15,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
@Service("HistoryService")
|
||||
public class CentralHistoryService implements HistoryService {
|
||||
|
||||
@Autowired
|
||||
private HistoryDAO historyDAO;
|
||||
|
||||
|
|
|
@ -29,6 +29,5 @@ public interface InfraDAO extends JpaRepository<Infra, Long> {
|
|||
List<Target> findAllTargetByProbeList(@Param("probeList") List<Probe> probeList);
|
||||
|
||||
Infra findByTarget(Target target);
|
||||
|
||||
// List<Infra> findAllByProbe(List<Probe> probeList);
|
||||
}
|
|
@ -10,4 +10,5 @@ import org.springframework.stereotype.Repository;
|
|||
@Repository
|
||||
public interface InfraHostDAO extends JpaRepository<InfraHost, Long> {
|
||||
InfraHost findByIp(long ip);
|
||||
|
||||
}
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraMachineDAO extends JpaRepository<InfraMachine, Long> {
|
||||
|
||||
}
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraOSApplicationDAO extends JpaRepository<InfraOSApplication, Long> {
|
||||
|
||||
}
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraOSDAO extends JpaRepository<InfraOS, Long> {
|
||||
|
||||
}
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraOSDaemonDAO extends JpaRepository<InfraOSDaemon, Long> {
|
||||
|
||||
}
|
|
@ -11,7 +11,6 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraOSPortDAO extends JpaRepository<InfraOSPort, Long> {
|
||||
|
||||
@Query("SELECT p from com.loafle.overflow.central.module.infra.model.InfraOSPort p WHERE p.os.id = (:osId) AND p.port = (:portNumber) AND p.portType = (:portType)")
|
||||
InfraOSPort findByPort(@Param("osId") long osId,@Param("portNumber") int portNumber,@Param("portType") String portType);
|
||||
}
|
|
@ -11,7 +11,6 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraServiceDAO extends JpaRepository<InfraService, Long> {
|
||||
|
||||
@Query("SELECT ins from com.loafle.overflow.central.module.infra.model.InfraService ins WHERE ins.host.id = (:hostId) AND ins.port = (:portNumber) AND ins.portType = (:portType)")
|
||||
InfraService findByService(@Param("hostId") long hostId,@Param("portNumber") int portNumber,@Param("portType") String portType);
|
||||
}
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
@Service("InfraHostService")
|
||||
public class CentralInfraHostService implements InfraHostService {
|
||||
|
||||
@Autowired
|
||||
InfraHostDAO infraHostDAO;
|
||||
|
||||
|
|
|
@ -22,5 +22,4 @@ public class CentralInfraMachineService implements InfraMachineService {
|
|||
public InfraMachine read(long id) {
|
||||
return this.infraMachineDAO.findOne(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
@Service("InfraOSApplicationService")
|
||||
public class CentralInfraOSApplicationService implements InfraOSApplicationService {
|
||||
|
||||
@Autowired
|
||||
InfraOSApplicationDAO infraOSApplicationDAO;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
@Service("InfraOSDaemonService")
|
||||
public class CentralInfraOSDaemonService implements InfraOSDaemonService {
|
||||
|
||||
@Autowired
|
||||
InfraOSDaemonDAO infraOSDaemonDAO;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
@Service("InfraOSPortService")
|
||||
public class CentralInfraOSPortService implements InfraOSPortService {
|
||||
|
||||
@Autowired
|
||||
InfraOSPortDAO infraOSPortDAO;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
@Service("InfraOSService")
|
||||
public class CentralInfraOSService implements InfraOSService {
|
||||
|
||||
@Autowired
|
||||
InfraOSDAO infraOSDAO;
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package com.loafle.overflow.central.module.infra.service;
|
||||
|
||||
import com.loafle.overflow.central.commons.model.PageParams;
|
||||
import com.loafle.overflow.central.commons.utils.PageUtil;
|
||||
import com.loafle.overflow.central.module.domain.model.Domain;
|
||||
import com.loafle.overflow.central.module.infra.dao.InfraDAO;
|
||||
import com.loafle.overflow.central.module.probe.exception.ProbeNotFoundException;
|
||||
import com.loafle.overflow.core.model.PageParams;
|
||||
import com.loafle.overflow.model.domain.Domain;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
import com.loafle.overflow.central.module.probe.service.ProbeService;
|
||||
import com.loafle.overflow.central.module.sensor.dao.SensorDAO;
|
||||
import com.loafle.overflow.model.target.Target;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.infra.Infra;
|
||||
import com.loafle.overflow.model.infra.InfraService;
|
||||
import com.loafle.overflow.service.central.infra.InfraService;
|
||||
import com.loafle.overflow.service.central.probe.ProbeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
@ -52,7 +52,7 @@ public class CentralInfraService implements InfraService {
|
|||
List<Probe> probeList = this.probeService.readAllByDomain(domain);
|
||||
|
||||
if(probeList == null || probeList.size() <= 0) {
|
||||
throw new ProbeNotFoundException();
|
||||
throw new OverflowException("ProbeNotFoundException", new Throwable());
|
||||
}
|
||||
|
||||
Page<Infra> infraList = this.infraDAO.findAllByProbeList(probeList, PageUtil.getPageRequest(pageParams));
|
||||
|
@ -68,7 +68,7 @@ public class CentralInfraService implements InfraService {
|
|||
List<Probe> probeList = this.probeService.readAllByDomain(domain);
|
||||
|
||||
if(probeList == null || probeList.size() <= 0) {
|
||||
throw new ProbeNotFoundException();
|
||||
throw new OverflowException("ProbeNotFoundException", new Throwable());
|
||||
}
|
||||
|
||||
return this.infraDAO.findAllTargetByProbeList(probeList);
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|||
*/
|
||||
@Service("InfraServiceService")
|
||||
public class CentralInfraServiceService implements InfraServiceService {
|
||||
|
||||
@Autowired
|
||||
InfraServiceDAO infraServiceDAO;
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.springframework.stereotype.Repository;
|
|||
/**
|
||||
* Created by insanity on 17. 5. 25.
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface MemberDAO extends JpaRepository<Member, Long> {
|
||||
@Query("select m from Member m WHERE m.email = :signinId")
|
||||
|
|
|
@ -15,6 +15,5 @@ public interface MemberTotpDAO extends JpaRepository<MemberTotp, Long> {
|
|||
@Query("select m from MemberTotp m WHERE m.secretCode = :secretCode")
|
||||
MemberTotp findBySecretCode(@Param("secretCode") String secretCode);
|
||||
|
||||
|
||||
MemberTotp findByMember(Member member);
|
||||
}
|
||||
|
|
|
@ -1,30 +1,29 @@
|
|||
package com.loafle.overflow.central.module.member.service;
|
||||
|
||||
import com.loafle.overflow.central.commons.model.SessionMetadata;
|
||||
import com.loafle.overflow.central.commons.stereotype.WebappAPI;
|
||||
import com.loafle.overflow.central.commons.utils.EmailSender;
|
||||
import com.loafle.overflow.central.module.apikey.model.ApiKey;
|
||||
import com.loafle.overflow.central.module.apikey.service.ApiKeyService;
|
||||
import com.loafle.overflow.central.module.domain.service.DomainMemberService;
|
||||
|
||||
import com.loafle.overflow.central.module.email.service.EmailAuthService;
|
||||
import com.loafle.overflow.central.module.member.dao.MemberDAO;
|
||||
import com.loafle.overflow.central.module.member.exception.*;
|
||||
|
||||
import com.loafle.overflow.central.module.probe.service.ProbeService;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.apikey.ApiKey;
|
||||
import com.loafle.overflow.model.domain.Domain;
|
||||
import com.loafle.overflow.model.domain.DomainMember;
|
||||
import com.loafle.overflow.model.member.Member;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
import com.loafle.overflow.model.meta.MetaMemberStatus;
|
||||
|
||||
import com.loafle.overflow.service.central.apikey.ApiKeyService;
|
||||
import com.loafle.overflow.service.central.domain.DomainMemberService;
|
||||
import com.loafle.overflow.service.central.member.MemberService;
|
||||
import com.loafle.overflow.service.central.probe.ProbeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.mail.MailException;
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
|
@ -60,21 +59,21 @@ public class CentralMemberService implements MemberService {
|
|||
Member m = this.memberDAO.findByEmail(signinId);
|
||||
|
||||
if ( null == m ) {
|
||||
throw new SignInIdNotExistException();
|
||||
throw new OverflowException("SignInIdNotExistException()", new Throwable());
|
||||
}
|
||||
|
||||
if ( m.getStatus().getId() == 1 ) {
|
||||
throw new EmailNotConfirmedException();
|
||||
throw new OverflowException("EmailNotConfirmedException()", new Throwable());
|
||||
}
|
||||
|
||||
Boolean match = passwordEncoder.matches(signinPw, m.getPw());
|
||||
if(!match) {
|
||||
if (m.getSigninFailCount() > 10) {
|
||||
throw new SigninOverFailedException("Login failed 10 times");
|
||||
throw new OverflowException("SigninOverFailedException()", new Throwable());
|
||||
}
|
||||
m.setSigninFailCount(m.getSigninFailCount()+1);
|
||||
this.modify(m);
|
||||
throw new SignInPwNotMatchException();
|
||||
throw new OverflowException("SignInPwNotMatchException()", new Throwable());
|
||||
}
|
||||
|
||||
m.setSigninFailCount(0);
|
||||
|
@ -91,16 +90,17 @@ public class CentralMemberService implements MemberService {
|
|||
Member isMember = this.memberDAO.findByEmail(member.getEmail());
|
||||
|
||||
if (null != isMember && isMember.getId() > 0) {
|
||||
throw new JoinedEmailException();
|
||||
throw new OverflowException("JoinedEmailException()", new Throwable());
|
||||
}
|
||||
|
||||
boolean checkPass = this.isPasswordStrong(pw);
|
||||
|
||||
if (!checkPass) {
|
||||
throw new PasswordNotStrongException(
|
||||
"Passwords must contain at least one uppercase letter, " +
|
||||
"special character, lowercase letter, and number, " +
|
||||
"and must be at least 6 characters long.");
|
||||
throw new OverflowException("PasswordNotStrongException()", new Throwable());
|
||||
// (
|
||||
// "Passwords must contain at least one uppercase letter, " +
|
||||
// "special character, lowercase letter, and number, " +
|
||||
// "and must be at least 6 characters long.");
|
||||
}
|
||||
member.setPw(passwordEncoder.encode(pw));
|
||||
|
||||
|
@ -112,7 +112,7 @@ public class CentralMemberService implements MemberService {
|
|||
|
||||
try {
|
||||
this.emailAuthService.sendEmailByMember(member.getId(), member.getEmail());
|
||||
} catch (MailException e) {
|
||||
} catch (Exception e) {
|
||||
// Todo ReSend Mail
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class CentralMemberService implements MemberService {
|
|||
Member member = this.memberDAO.findByEmail(email);
|
||||
|
||||
if (null == member) {
|
||||
throw new SignInIdNotExistException();
|
||||
throw new OverflowException("SignInIdNotExistException()", new Throwable());
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -138,7 +138,13 @@ public class CentralMemberService implements MemberService {
|
|||
}
|
||||
|
||||
public Member resetPassword(String encodeEmail, String pw) throws OverflowException {
|
||||
String deStr = URLDecoder.decode(encodeEmail, "UTF-8");
|
||||
String deStr = null;
|
||||
|
||||
try {
|
||||
deStr = URLDecoder.decode(encodeEmail, "UTF-8");
|
||||
}catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
String deEmail = this.emailSender.decrypt(deStr);
|
||||
Member member = this.memberDAO.findByEmail(deEmail);
|
||||
|
@ -150,10 +156,10 @@ public class CentralMemberService implements MemberService {
|
|||
boolean checkPass = this.isPasswordStrong(pw);
|
||||
|
||||
if (!checkPass) {
|
||||
throw new PasswordNotStrongException(
|
||||
"Passwords must contain at least one uppercase letter, " +
|
||||
"special character, lowercase letter, and number, " +
|
||||
"and must be at least 6 characters long.");
|
||||
throw new OverflowException("PasswordNotStrongException()", new Throwable());
|
||||
// "Passwords must contain at least one uppercase letter, " +
|
||||
// "special character, lowercase letter, and number, " +
|
||||
// "and must be at least 6 characters long.");
|
||||
}
|
||||
member.setPw(passwordEncoder.encode(pw));
|
||||
|
||||
|
@ -173,10 +179,10 @@ public class CentralMemberService implements MemberService {
|
|||
boolean checkPass = this.isPasswordStrong(pw);
|
||||
|
||||
if (!checkPass) {
|
||||
throw new PasswordNotStrongException(
|
||||
"Passwords must contain at least one uppercase letter, " +
|
||||
"special character, lowercase letter, and number, " +
|
||||
"and must be at least 6 characters long.");
|
||||
throw new OverflowException("PasswordNotStrongException()", new Throwable());
|
||||
// "Passwords must contain at least one uppercase letter, " +
|
||||
// "special character, lowercase letter, and number, " +
|
||||
// "and must be at least 6 characters long.");
|
||||
}
|
||||
|
||||
Boolean match = passwordEncoder.matches(member.getPw(), preMember.getPw());
|
||||
|
@ -204,7 +210,7 @@ public class CentralMemberService implements MemberService {
|
|||
Boolean match = passwordEncoder.matches(encodePw, preMember.getPw());
|
||||
|
||||
if (!match) {
|
||||
throw new SignInPwNotMatchException();
|
||||
throw new OverflowException("SignInPwNotMatchException", new Throwable());
|
||||
}
|
||||
|
||||
return preMember;
|
||||
|
@ -214,7 +220,7 @@ public class CentralMemberService implements MemberService {
|
|||
Member preMember = this.memberDAO.findByEmail(signinId);
|
||||
|
||||
if (null == preMember) {
|
||||
throw new SignInIdNotExistException();
|
||||
throw new OverflowException("SignInIdNotExistException()", new Throwable());
|
||||
}
|
||||
|
||||
Member cMember = this.modify(preMember, newPw);
|
||||
|
@ -224,7 +230,7 @@ public class CentralMemberService implements MemberService {
|
|||
|
||||
public Member read(long memberId) throws OverflowException {
|
||||
if (memberId <= 0) {
|
||||
throw new SignInIdNotExistException();
|
||||
throw new OverflowException("SignInIdNotExistException()", new Throwable());
|
||||
}
|
||||
|
||||
Member resMember = this.memberDAO.findOne(memberId);
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaCrawlerDAO extends JpaRepository<MetaCrawler, Short> {
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,5 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaCrawlerInputItemDAO extends JpaRepository<MetaCrawlerInputItem, Integer> {
|
||||
|
||||
List<MetaCrawlerInputItem> findAllByCrawler(MetaCrawler crawler);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaHistoryTypeDAO extends JpaRepository<MetaHistoryType, Integer> {
|
||||
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaInfraTypeDAO extends JpaRepository<MetaInfraType, Integer> {
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,5 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaInfraVendorDAO extends JpaRepository<MetaInfraVendor, Integer> {
|
||||
|
||||
List<MetaInfraVendor> findAllByInfraType(MetaInfraType infraType);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaInputTypeDAO extends JpaRepository<MetaInputType, Short> {
|
||||
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaMemberStatusDAO extends JpaRepository<MetaMemberStatus, Short> {
|
||||
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaNoAuthProbeStatusDAO extends JpaRepository<MetaNoAuthProbeStatus, Short> {
|
||||
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaNotificationDAO extends JpaRepository<MetaNotification, Long> {
|
||||
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaProbeArchitectureDAO extends JpaRepository<MetaProbeArchitecture, Short> {
|
||||
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaProbeOsDAO extends JpaRepository<MetaProbeOs, Short> {
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,5 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaProbePackageDAO extends JpaRepository<MetaProbePackage, Long> {
|
||||
|
||||
List<MetaProbePackage> findAllByOs(MetaProbeOs metaProbeOs);
|
||||
}
|
||||
|
|
|
@ -10,3 +10,4 @@ import org.springframework.stereotype.Repository;
|
|||
@Repository
|
||||
public interface MetaProbeStatusDAO extends JpaRepository<MetaProbeStatus, Short> {
|
||||
}
|
||||
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaProbeTaskTypeDAO extends JpaRepository<MetaProbeTaskType, Short>{
|
||||
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaProbeVersionDAO extends JpaRepository<MetaProbeVersion, Short>{
|
||||
|
||||
}
|
||||
|
|
|
@ -13,5 +13,4 @@ import java.util.List;
|
|||
@Repository
|
||||
public interface MetaSensorDisplayItemDAO extends JpaRepository<MetaSensorDisplayItem, Long> {
|
||||
public List<MetaSensorDisplayItem> findAllByCrawler(MetaCrawler crawler);
|
||||
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaSensorDisplayMappingDAO extends JpaRepository<MetaSensorDisplayMapping, Short> {
|
||||
|
||||
@Query("SELECT m.itemKey from MetaSensorDisplayMapping m where m.displayItem = (:displayItem)")
|
||||
public List<MetaSensorItemKey> findAllByDisplayItem(@Param("displayItem") MetaSensorDisplayItem displayItem);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaSensorItemDAO extends JpaRepository<MetaSensorItem, Integer>{
|
||||
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaSensorItemKeyDAO extends JpaRepository<MetaSensorItemKey, Long> {
|
||||
|
||||
// @Query("SELECT msik.item.id, msik.key from MetaSensorItemKey msik WHERE msik.crawler.id = (:metaCrawler.id)")
|
||||
List<MetaSensorItemKey> findAllByCrawler(MetaCrawler metaCrawler);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaSensorItemTypeDAO extends JpaRepository<MetaSensorItemType, Short>{
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.springframework.stereotype.Repository;
|
|||
/**
|
||||
* Created by insanity on 17. 9. 20.
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface MetaSensorItemUnitDAO extends JpaRepository<MetaSensorItemUnit, Short> {
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.springframework.stereotype.Repository;
|
|||
/**
|
||||
* Created by snoop on 17. 6. 26.
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface MetaSensorStatusDAO extends JpaRepository<MetaSensorStatus, Short> {
|
||||
}
|
||||
|
|
|
@ -12,6 +12,5 @@ import java.util.List;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaVendorCrawlerDAO extends JpaRepository<MetaVendorCrawler, Integer>{
|
||||
|
||||
List<MetaVendorCrawler> findAllByInfraVendor(MetaInfraVendor infraVendor);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaVendorCrawlerSensorItemDAO extends JpaRepository<MetaVendorCrawlerSensorItem, Long>{
|
||||
|
||||
}
|
||||
|
|
|
@ -22,5 +22,4 @@ public class CentralMetaCrawlerInputItemService implements MetaCrawlerInputItemS
|
|||
public List<MetaCrawlerInputItem> readAllByMetaCrawler(MetaCrawler metaCrawler) throws OverflowException {
|
||||
return this.crawlerInputItemDAO.findAllByCrawler(metaCrawler);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.loafle.overflow.central.module.meta.service;
|
||||
|
||||
import com.loafle.overflow.central.module.meta.dao.MetaCrawlerDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaCrawler;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
@ -16,7 +17,7 @@ public class CentralMetaCrawlerService {
|
|||
@Autowired
|
||||
private MetaCrawlerDAO crawlerDAO;
|
||||
|
||||
public List<MetaCrawler> readAll() {
|
||||
public List<MetaCrawler> readAll() throws OverflowException {
|
||||
return this.crawlerDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaHistoryTypeService")
|
||||
public class CentralMetaHistoryTypeService implements MetaHistoryTypeService {
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaInfraTypeService")
|
||||
public class CentralMetaInfraTypeService implements MetaInfraTypeService {
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaInfraVendorService")
|
||||
public class CentralMetaInfraVendorService implements MetaInfraVendorService {
|
||||
|
||||
|
|
|
@ -21,5 +21,4 @@ public class CentralMetaInputTypeService implements MetaInputTypeService {
|
|||
public List<MetaInputType> readAll() throws OverflowException {
|
||||
return this.inputTypeDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,5 +21,4 @@ public class CentralMetaMemberStatusService implements MetaMemberStatusService {
|
|||
public List<MetaMemberStatus> readAll() throws OverflowException {
|
||||
return this.memberStatusDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaNoAuthProbeStatusService")
|
||||
public class CentralMetaNoAuthProbeStatusService implements MetaNoAuthProbeStatusService {
|
||||
@Autowired
|
||||
|
|
|
@ -21,5 +21,4 @@ public class CentralMetaProbeArchitectureService implements MetaProbeArchitectur
|
|||
public List<MetaProbeArchitecture> readAll() throws OverflowException {
|
||||
return this.probeArchitectureDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,5 +21,4 @@ public class CentralMetaProbeOsService implements MetaProbeOsService {
|
|||
public List<MetaProbeOs> readAll() throws OverflowException {
|
||||
return this.probeOsDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -22,5 +22,4 @@ public class CentralMetaProbePackageService implements MetaProbePackageService {
|
|||
public List<MetaProbePackage> readAllByOs(MetaProbeOs metaProbeOs) throws OverflowException {
|
||||
return this.probePackageDAO.findAllByOs(metaProbeOs);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,5 +21,4 @@ public class CentralMetaProbeStatusService implements MetaProbeStatusService {
|
|||
public List<MetaProbeStatus> readAll() throws OverflowException {
|
||||
return this.probeStatusDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaProbeTaskTypeService")
|
||||
public class CentralMetaProbeTaskTypeService implements MetaProbeTaskTypeService {
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaProbeVersionService")
|
||||
public class CentralMetaProbeVersionService implements MetaProbeVersionService {
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import java.util.List;
|
|||
/**
|
||||
* Created by insanity on 17. 9. 20.
|
||||
*/
|
||||
|
||||
@Service("MetaSensorDisplayItemService")
|
||||
public class CentralMetaSensorDisplayItemService implements MetaSensorDisplayItemService {
|
||||
@Autowired
|
||||
|
|
|
@ -26,5 +26,4 @@ public class CentralMetaSensorDisplayMappingService implements MetaSensorDisplay
|
|||
public List<MetaSensorItemKey> findAllByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException {
|
||||
return this.mappingDAO.findAllByDisplayItem(displayItem);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* Created by snoop on 17. 8. 29.
|
||||
*/
|
||||
|
||||
@Service("MetaSensorItemKeyService")
|
||||
public class CentralMetaSensorItemKeyService implements MetaSensorItemKeyService {
|
||||
|
||||
|
|
|
@ -22,5 +22,4 @@ public class CentralMetaSensorItemService implements MetaSensorItemService {
|
|||
public List<MetaSensorItem> readAll() throws OverflowException {
|
||||
return this.metaSensorItemDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaSensorItemTypeService")
|
||||
public class CentralMetaSensorItemTypeService implements MetaSensorItemTypeService {
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
|
|||
/**
|
||||
* Created by insanity on 17. 9. 20.
|
||||
*/
|
||||
|
||||
@Service("MetaSensorItemUnitService")
|
||||
public class CentralMetaSensorItemUnitService implements MetaSensorItemUnitService {
|
||||
@Autowired
|
||||
|
|
|
@ -21,5 +21,4 @@ public class CentralMetaSensorStatusService implements MetaSensorStatusService {
|
|||
public List<MetaSensorStatus> readAll() throws OverflowException {
|
||||
return this.sensorStatusDAO.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,6 +8,4 @@ import org.springframework.stereotype.Service;
|
|||
*/
|
||||
@Service("MetaVendorCrawlerSensorItemService")
|
||||
public class CentralMetaVendorCrawlerSensorItemService implements MetaVendorCrawlerSensorItemService {
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
|
||||
@Service("MetaVendorCrawlerService")
|
||||
public class CentralMetaVendorCrawlerService implements MetaVendorCrawlerService {
|
||||
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
package com.loafle.overflow.central.module.noauthprobe.service;
|
||||
|
||||
import com.loafle.overflow.central.commons.model.SessionMetadata;
|
||||
import com.loafle.overflow.central.commons.service.MessagePublisher;
|
||||
import com.loafle.overflow.central.commons.stereotype.ProbeAPI;
|
||||
import com.loafle.overflow.central.commons.stereotype.WebappAPI;
|
||||
import com.loafle.overflow.central.commons.utils.GenerateKey;
|
||||
import com.loafle.overflow.central.module.member.service.MemberService;
|
||||
import com.loafle.overflow.central.module.noauthprobe.dao.NoAuthProbeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.apikey.ApiKey;
|
||||
|
|
Loading…
Reference in New Issue
Block a user