ing
This commit is contained in:
parent
7dd1c9f165
commit
312d87d6ed
2
pom.xml
2
pom.xml
|
@ -50,7 +50,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.loafle.overflow</groupId>
|
<groupId>com.loafle.overflow</groupId>
|
||||||
<artifactId>commons-java</artifactId>
|
<artifactId>commons-java</artifactId>
|
||||||
<version>1.0.20-SNAPSHOT</version>
|
<version>1.0.21-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaCrawlerMapping;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaCrawlerMappingDAO extends JpaRepository<MetaCrawlerMapping, Long> {
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaNotification;
|
import com.loafle.overflow.model.meta.MetaCryptoType;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository;
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaNotificationDAO extends JpaRepository<MetaNotification, Long> {
|
public interface MetaCryptoTypeDAO extends JpaRepository<MetaCryptoType, Short> {
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeVersion;
|
import com.loafle.overflow.model.meta.MetaEmailType;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository;
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaProbeVersionDAO extends JpaRepository<MetaProbeVersion, Short> {
|
public interface MetaEmailTypeDAO extends JpaRepository<MetaEmailType, Short> {
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeOs;
|
import com.loafle.overflow.model.meta.MetaIPType;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository;
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaProbeOsDAO extends JpaRepository<MetaProbeOs, Short> {
|
public interface MetaIPTypeDAO extends JpaRepository<MetaIPType, Short> {
|
||||||
}
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaInfraVendor;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by insanity on 17. 6. 23.
|
|
||||||
*/
|
|
||||||
@Repository
|
|
||||||
public interface MetaInfraVendorDAO extends JpaRepository<MetaInfraVendor, Integer> {
|
|
||||||
List<MetaInfraVendor> findAllByMetaInfraTypeId(Integer MetaInfraTypeId);
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeTaskType;
|
import com.loafle.overflow.model.meta.MetaPortType;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository;
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaProbeTaskTypeDAO extends JpaRepository<MetaProbeTaskType, Short> {
|
public interface MetaPortTypeDAO extends JpaRepository<MetaPortType, Short> {
|
||||||
}
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbePackage;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by insanity on 17. 6. 23.
|
|
||||||
*/
|
|
||||||
@Repository
|
|
||||||
public interface MetaProbePackageDAO extends JpaRepository<MetaProbePackage, Long> {
|
|
||||||
List<MetaProbePackage> findAllByMetaProbeOsId(Short metaProbeOsId);
|
|
||||||
}
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetHostType;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaTargetHostTypeDAO extends JpaRepository<MetaTargetHostType, Integer> {
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeArchitecture;
|
import com.loafle.overflow.model.meta.MetaTargetServiceType;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository;
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaProbeArchitectureDAO extends JpaRepository<MetaProbeArchitecture, Short> {
|
public interface MetaTargetServiceTypeDAO extends JpaRepository<MetaTargetServiceType, Integer> {
|
||||||
}
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetStatus;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaTargetStatusDAO extends JpaRepository<MetaTargetStatus, Short> {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetTypeCategory;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaTargetTypeCategoryDAO extends JpaRepository<MetaTargetTypeCategory, Integer> {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetTypeCategoryMapping;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaTargetTypeCategoryMappingDAO extends JpaRepository<MetaTargetTypeCategoryMapping, Long> {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetType;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaTargetTypeDAO extends JpaRepository<MetaTargetType, Integer> {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetZoneType;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by insanity on 17. 6. 23.
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface MetaTargetZoneTypeDAO extends JpaRepository<MetaTargetZoneType, Integer> {
|
||||||
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaVendorCrawler;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by insanity on 17. 6. 23.
|
|
||||||
*/
|
|
||||||
@Repository
|
|
||||||
public interface MetaVendorCrawlerDAO extends JpaRepository<MetaVendorCrawler, Integer> {
|
|
||||||
List<MetaVendorCrawler> findAllByMetaInfraVendorId(Integer metaInfraVendorId);
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.dao;
|
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaVendorCrawlerSensorItem;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by insanity on 17. 6. 23.
|
|
||||||
*/
|
|
||||||
@Repository
|
|
||||||
public interface MetaVendorCrawlerSensorItemDAO extends JpaRepository<MetaVendorCrawlerSensorItem, Long> {
|
|
||||||
}
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaCrawlerMappingDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaCrawlerMapping;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaCrawlerMappingService")
|
||||||
|
public class CentralMetaCrawlerMappingService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaCrawlerMappingDAO metaCrawlerMappingDAO;
|
||||||
|
|
||||||
|
public List<MetaCrawlerMapping> readAll() throws OverflowException {
|
||||||
|
return this.metaCrawlerMappingDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -15,9 +15,9 @@ import java.util.List;
|
||||||
public class CentralMetaCrawlerService {
|
public class CentralMetaCrawlerService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MetaCrawlerDAO crawlerDAO;
|
private MetaCrawlerDAO metaCrawlerDAO;
|
||||||
|
|
||||||
public List<MetaCrawler> readAll() throws OverflowException {
|
public List<MetaCrawler> readAll() throws OverflowException {
|
||||||
return this.crawlerDAO.findAll();
|
return this.metaCrawlerDAO.findAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaCryptoTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaCryptoType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaCryptoTypeService")
|
||||||
|
public class CentralMetaCryptoTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaCryptoTypeDAO metaCryptoTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaCryptoType> readAll() throws OverflowException {
|
||||||
|
return this.metaCryptoTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaEmailTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaEmailType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaEmailTypeService")
|
||||||
|
public class CentralMetaEmailTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaEmailTypeDAO metaEmailTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaEmailType> readAll() throws OverflowException {
|
||||||
|
return this.metaEmailTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaIPTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaIPType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaIPTypeService")
|
||||||
|
public class CentralMetaIPTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaIPTypeDAO metaIPTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaIPType> readAll() throws OverflowException {
|
||||||
|
return this.metaIPTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,26 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaInfraVendorDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaInfraVendor;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaInfraVendorService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Service("MetaInfraVendorService")
|
|
||||||
public class CentralMetaInfraVendorService implements MetaInfraVendorService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaInfraVendorDAO infraVendorDAO;
|
|
||||||
|
|
||||||
public List<MetaInfraVendor> readAllByMetaInfraTypeID(Integer metaInfraTypeID) throws OverflowException {
|
|
||||||
return this.infraVendorDAO.findAllByMetaInfraTypeId(metaInfraTypeID);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaPortTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaPortType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaPortTypeService")
|
||||||
|
public class CentralMetaPortTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaPortTypeDAO metaPortTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaPortType> readAll() throws OverflowException {
|
||||||
|
return this.metaPortTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,24 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaProbeArchitectureDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeArchitecture;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaProbeArchitectureService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
@Service("MetaProbeArchitectureService")
|
|
||||||
public class CentralMetaProbeArchitectureService implements MetaProbeArchitectureService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaProbeArchitectureDAO probeArchitectureDAO;
|
|
||||||
|
|
||||||
public List<MetaProbeArchitecture> readAll() throws OverflowException {
|
|
||||||
return this.probeArchitectureDAO.findAll();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaProbeOsDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeOs;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaProbeOsService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
@Service("MetaProbeOsService")
|
|
||||||
public class CentralMetaProbeOsService implements MetaProbeOsService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaProbeOsDAO probeOsDAO;
|
|
||||||
|
|
||||||
public List<MetaProbeOs> readAll() throws OverflowException {
|
|
||||||
return this.probeOsDAO.findAll();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaProbePackageDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbePackage;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaProbePackageService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
@Service("MetaProbePackageService")
|
|
||||||
public class CentralMetaProbePackageService implements MetaProbePackageService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaProbePackageDAO probePackageDAO;
|
|
||||||
|
|
||||||
public List<MetaProbePackage> readAllByMetaProbeOsID(Short metaProbeOsID) throws OverflowException {
|
|
||||||
return this.probePackageDAO.findAllByMetaProbeOsId(metaProbeOsID);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaProbeTaskTypeDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeTaskType;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaProbeTaskTypeService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Service("MetaProbeTaskTypeService")
|
|
||||||
public class CentralMetaProbeTaskTypeService implements MetaProbeTaskTypeService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaProbeTaskTypeDAO probeTaskTypeDAO;
|
|
||||||
|
|
||||||
public List<MetaProbeTaskType> readAll() throws OverflowException {
|
|
||||||
return this.probeTaskTypeDAO.findAll();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaProbeVersionDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaProbeVersion;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaProbeVersionService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Service("MetaProbeVersionService")
|
|
||||||
public class CentralMetaProbeVersionService implements MetaProbeVersionService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaProbeVersionDAO probeVersionDAO;
|
|
||||||
|
|
||||||
public List<MetaProbeVersion> readAll() throws OverflowException {
|
|
||||||
return this.probeVersionDAO.findAll();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetHostTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetHostType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetHostTypeService")
|
||||||
|
public class CentralMetaTargetHostTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetHostTypeDAO metaTargetHostTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaTargetHostType> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetHostTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetServiceTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetServiceType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetServiceTypeService")
|
||||||
|
public class CentralMetaTargetServiceTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetServiceTypeDAO metaTargetServiceTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaTargetServiceType> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetServiceTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetStatusDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetStatus;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetStatusService")
|
||||||
|
public class CentralMetaTargetStatusService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetStatusDAO metaTargetStatusDAO;
|
||||||
|
|
||||||
|
public List<MetaTargetStatus> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetStatusDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeCategoryMappingDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetTypeCategoryMapping;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetTypeCategoryMappingService")
|
||||||
|
public class CentralMetaTargetTypeCategoryMappingService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetTypeCategoryMappingDAO metaTargetTypeCategoryMappingDAO;
|
||||||
|
|
||||||
|
public List<MetaTargetTypeCategoryMapping> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetTypeCategoryMappingDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeCategoryDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetTypeCategory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetTypeCategoryService")
|
||||||
|
public class CentralMetaTargetTypeCategoryService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetTypeCategoryDAO metaTargetTypeCategoryDAO;
|
||||||
|
|
||||||
|
public List<MetaTargetTypeCategory> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetTypeCategoryDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetTypeService")
|
||||||
|
public class CentralMetaTargetTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetTypeDAO metaTargetTypeDAO;
|
||||||
|
|
||||||
|
public List<MetaTargetType> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetTypeDAO.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaTargetZoneTypeDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetZoneType;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by snoop on 17. 7. 27.
|
||||||
|
*/
|
||||||
|
@Service("MetaTargetZoneTypeService")
|
||||||
|
public class CentralMetaTargetZoneTypeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaTargetZoneTypeDAO metaTargetZoneType;
|
||||||
|
|
||||||
|
public List<MetaTargetZoneType> readAll() throws OverflowException {
|
||||||
|
return this.metaTargetZoneType.findAll();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,11 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaVendorCrawlerSensorItemService;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
@Service("MetaVendorCrawlerSensorItemService")
|
|
||||||
public class CentralMetaVendorCrawlerSensorItemService implements MetaVendorCrawlerSensorItemService {
|
|
||||||
}
|
|
|
@ -1,30 +0,0 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
|
||||||
|
|
||||||
import com.loafle.overflow.central.module.meta.dao.MetaVendorCrawlerDAO;
|
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
|
||||||
import com.loafle.overflow.model.meta.MetaVendorCrawler;
|
|
||||||
import com.loafle.overflow.service.central.meta.MetaVendorCrawlerService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by snoop on 17. 7. 27.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Service("MetaVendorCrawlerService")
|
|
||||||
public class CentralMetaVendorCrawlerService implements MetaVendorCrawlerService {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MetaVendorCrawlerDAO crawlerDAO;
|
|
||||||
|
|
||||||
public List<MetaVendorCrawler> readAllByMetaInfraVendorID(Integer metaInfraVendorID) throws OverflowException {
|
|
||||||
|
|
||||||
return this.crawlerDAO.findAllByMetaInfraVendorId(metaInfraVendorID);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MetaVendorCrawler regist(MetaVendorCrawler metaVendorCrawler) throws OverflowException {
|
|
||||||
return this.crawlerDAO.save(metaVendorCrawler);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user