From 312d87d6eda049c32929f5df1fa6bd21d4fcde16 Mon Sep 17 00:00:00 2001 From: crusader Date: Sun, 10 Jun 2018 21:26:53 +0900 Subject: [PATCH] ing --- pom.xml | 2 +- .../meta/dao/MetaCrawlerMappingDAO.java | 12 ++++++++ ...icationDAO.java => MetaCryptoTypeDAO.java} | 4 +-- ...eVersionDAO.java => MetaEmailTypeDAO.java} | 4 +-- ...MetaProbeOsDAO.java => MetaIPTypeDAO.java} | 4 +-- .../module/meta/dao/MetaInfraVendorDAO.java | 15 ---------- ...eTaskTypeDAO.java => MetaPortTypeDAO.java} | 4 +-- .../module/meta/dao/MetaProbePackageDAO.java | 15 ---------- .../meta/dao/MetaTargetHostTypeDAO.java | 12 ++++++++ ...DAO.java => MetaTargetServiceTypeDAO.java} | 4 +-- .../module/meta/dao/MetaTargetStatusDAO.java | 12 ++++++++ .../meta/dao/MetaTargetTypeCategoryDAO.java | 12 ++++++++ .../dao/MetaTargetTypeCategoryMappingDAO.java | 12 ++++++++ .../module/meta/dao/MetaTargetTypeDAO.java | 12 ++++++++ .../meta/dao/MetaTargetZoneTypeDAO.java | 12 ++++++++ .../module/meta/dao/MetaVendorCrawlerDAO.java | 15 ---------- .../dao/MetaVendorCrawlerSensorItemDAO.java | 12 -------- .../CentralMetaCrawlerMappingService.java | 23 ++++++++++++++ .../service/CentralMetaCrawlerService.java | 4 +-- .../service/CentralMetaCryptoTypeService.java | 23 ++++++++++++++ .../service/CentralMetaEmailTypeService.java | 23 ++++++++++++++ .../service/CentralMetaIPTypeService.java | 23 ++++++++++++++ .../CentralMetaInfraVendorService.java | 26 ---------------- .../service/CentralMetaPortTypeService.java | 23 ++++++++++++++ .../CentralMetaProbeArchitectureService.java | 24 --------------- .../service/CentralMetaProbeOsService.java | 24 --------------- .../CentralMetaProbePackageService.java | 24 --------------- .../CentralMetaProbeTaskTypeService.java | 25 ---------------- .../CentralMetaProbeVersionService.java | 25 ---------------- .../CentralMetaTargetHostTypeService.java | 23 ++++++++++++++ .../CentralMetaTargetServiceTypeService.java | 23 ++++++++++++++ .../CentralMetaTargetStatusService.java | 23 ++++++++++++++ ...lMetaTargetTypeCategoryMappingService.java | 23 ++++++++++++++ .../CentralMetaTargetTypeCategoryService.java | 23 ++++++++++++++ .../service/CentralMetaTargetTypeService.java | 23 ++++++++++++++ .../CentralMetaTargetZoneTypeService.java | 23 ++++++++++++++ ...ralMetaVendorCrawlerSensorItemService.java | 11 ------- .../CentralMetaVendorCrawlerService.java | 30 ------------------- 38 files changed, 373 insertions(+), 259 deletions(-) create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCrawlerMappingDAO.java rename src/main/java/com/loafle/overflow/central/module/meta/dao/{MetaNotificationDAO.java => MetaCryptoTypeDAO.java} (61%) rename src/main/java/com/loafle/overflow/central/module/meta/dao/{MetaProbeVersionDAO.java => MetaEmailTypeDAO.java} (61%) rename src/main/java/com/loafle/overflow/central/module/meta/dao/{MetaProbeOsDAO.java => MetaIPTypeDAO.java} (64%) delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraVendorDAO.java rename src/main/java/com/loafle/overflow/central/module/meta/dao/{MetaProbeTaskTypeDAO.java => MetaPortTypeDAO.java} (60%) delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbePackageDAO.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetHostTypeDAO.java rename src/main/java/com/loafle/overflow/central/module/meta/dao/{MetaProbeArchitectureDAO.java => MetaTargetServiceTypeDAO.java} (58%) create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetStatusDAO.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryDAO.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryMappingDAO.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeDAO.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetZoneTypeDAO.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerDAO.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerSensorItemDAO.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerMappingService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCryptoTypeService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaEmailTypeService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaIPTypeService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraVendorService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaPortTypeService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeArchitectureService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeOsService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbePackageService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeTaskTypeService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeVersionService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetHostTypeService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetServiceTypeService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetStatusService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryMappingService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeService.java create mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetZoneTypeService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerSensorItemService.java delete mode 100644 src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerService.java diff --git a/pom.xml b/pom.xml index c443ebb..7cda140 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ com.loafle.overflow commons-java - 1.0.20-SNAPSHOT + 1.0.21-SNAPSHOT diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCrawlerMappingDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCrawlerMappingDAO.java new file mode 100644 index 0000000..2d862e5 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCrawlerMappingDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNotificationDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java similarity index 61% rename from src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNotificationDAO.java rename to src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java index 666fe32..fcb4ebc 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNotificationDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java @@ -1,6 +1,6 @@ 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.stereotype.Repository; @@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository; * Created by insanity on 17. 6. 23. */ @Repository -public interface MetaNotificationDAO extends JpaRepository { +public interface MetaCryptoTypeDAO extends JpaRepository { } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeVersionDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java similarity index 61% rename from src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeVersionDAO.java rename to src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java index 2712382..b27c488 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeVersionDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java @@ -1,6 +1,6 @@ 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.stereotype.Repository; @@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository; * Created by insanity on 17. 6. 23. */ @Repository -public interface MetaProbeVersionDAO extends JpaRepository { +public interface MetaEmailTypeDAO extends JpaRepository { } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeOsDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java similarity index 64% rename from src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeOsDAO.java rename to src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java index 007aad6..e804f7e 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeOsDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java @@ -1,6 +1,6 @@ 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.stereotype.Repository; @@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository; * Created by insanity on 17. 6. 23. */ @Repository -public interface MetaProbeOsDAO extends JpaRepository { +public interface MetaIPTypeDAO extends JpaRepository { } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraVendorDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraVendorDAO.java deleted file mode 100644 index 2c0c13f..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraVendorDAO.java +++ /dev/null @@ -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 { - List findAllByMetaInfraTypeId(Integer MetaInfraTypeId); -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeTaskTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java similarity index 60% rename from src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeTaskTypeDAO.java rename to src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java index 9f07939..3a32996 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeTaskTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java @@ -1,6 +1,6 @@ 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.stereotype.Repository; @@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository; * Created by insanity on 17. 6. 23. */ @Repository -public interface MetaProbeTaskTypeDAO extends JpaRepository { +public interface MetaPortTypeDAO extends JpaRepository { } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbePackageDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbePackageDAO.java deleted file mode 100644 index d4ee377..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbePackageDAO.java +++ /dev/null @@ -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 { - List findAllByMetaProbeOsId(Short metaProbeOsId); -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetHostTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetHostTypeDAO.java new file mode 100644 index 0000000..bebe928 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetHostTypeDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeArchitectureDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java similarity index 58% rename from src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeArchitectureDAO.java rename to src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java index e3bddea..1e9bcf1 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeArchitectureDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java @@ -1,6 +1,6 @@ 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.stereotype.Repository; @@ -8,5 +8,5 @@ import org.springframework.stereotype.Repository; * Created by insanity on 17. 6. 23. */ @Repository -public interface MetaProbeArchitectureDAO extends JpaRepository { +public interface MetaTargetServiceTypeDAO extends JpaRepository { } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetStatusDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetStatusDAO.java new file mode 100644 index 0000000..c5b8470 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetStatusDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryDAO.java new file mode 100644 index 0000000..38d0e3d --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryMappingDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryMappingDAO.java new file mode 100644 index 0000000..bf2a079 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeCategoryMappingDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeDAO.java new file mode 100644 index 0000000..6409c5c --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetTypeDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetZoneTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetZoneTypeDAO.java new file mode 100644 index 0000000..40b4843 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetZoneTypeDAO.java @@ -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 { +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerDAO.java deleted file mode 100644 index 44ccf8c..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerDAO.java +++ /dev/null @@ -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 { - List findAllByMetaInfraVendorId(Integer metaInfraVendorId); -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerSensorItemDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerSensorItemDAO.java deleted file mode 100644 index c734555..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaVendorCrawlerSensorItemDAO.java +++ /dev/null @@ -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 { -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerMappingService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerMappingService.java new file mode 100644 index 0000000..08ddd2b --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerMappingService.java @@ -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 readAll() throws OverflowException { + return this.metaCrawlerMappingDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerService.java index c2ecbb8..7f53667 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerService.java @@ -15,9 +15,9 @@ import java.util.List; public class CentralMetaCrawlerService { @Autowired - private MetaCrawlerDAO crawlerDAO; + private MetaCrawlerDAO metaCrawlerDAO; public List readAll() throws OverflowException { - return this.crawlerDAO.findAll(); + return this.metaCrawlerDAO.findAll(); } } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCryptoTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCryptoTypeService.java new file mode 100644 index 0000000..b740028 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCryptoTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaCryptoTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaEmailTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaEmailTypeService.java new file mode 100644 index 0000000..03a2244 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaEmailTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaEmailTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaIPTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaIPTypeService.java new file mode 100644 index 0000000..13999f1 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaIPTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaIPTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraVendorService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraVendorService.java deleted file mode 100644 index fd42e3b..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraVendorService.java +++ /dev/null @@ -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 readAllByMetaInfraTypeID(Integer metaInfraTypeID) throws OverflowException { - return this.infraVendorDAO.findAllByMetaInfraTypeId(metaInfraTypeID); - } - -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaPortTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaPortTypeService.java new file mode 100644 index 0000000..85b5b3a --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaPortTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaPortTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeArchitectureService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeArchitectureService.java deleted file mode 100644 index 49700b4..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeArchitectureService.java +++ /dev/null @@ -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 readAll() throws OverflowException { - return this.probeArchitectureDAO.findAll(); - } -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeOsService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeOsService.java deleted file mode 100644 index 5a3bc79..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeOsService.java +++ /dev/null @@ -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 readAll() throws OverflowException { - return this.probeOsDAO.findAll(); - } -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbePackageService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbePackageService.java deleted file mode 100644 index 757e7c3..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbePackageService.java +++ /dev/null @@ -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 readAllByMetaProbeOsID(Short metaProbeOsID) throws OverflowException { - return this.probePackageDAO.findAllByMetaProbeOsId(metaProbeOsID); - } -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeTaskTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeTaskTypeService.java deleted file mode 100644 index 0a4296f..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeTaskTypeService.java +++ /dev/null @@ -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 readAll() throws OverflowException { - return this.probeTaskTypeDAO.findAll(); - } -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeVersionService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeVersionService.java deleted file mode 100644 index a500fed..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeVersionService.java +++ /dev/null @@ -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 readAll() throws OverflowException { - return this.probeVersionDAO.findAll(); - } -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetHostTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetHostTypeService.java new file mode 100644 index 0000000..8cd259d --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetHostTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetHostTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetServiceTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetServiceTypeService.java new file mode 100644 index 0000000..da585e2 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetServiceTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetServiceTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetStatusService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetStatusService.java new file mode 100644 index 0000000..354c02a --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetStatusService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetStatusDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryMappingService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryMappingService.java new file mode 100644 index 0000000..df382f1 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryMappingService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetTypeCategoryMappingDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryService.java new file mode 100644 index 0000000..b238fd6 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeCategoryService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetTypeCategoryDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeService.java new file mode 100644 index 0000000..4cb499e --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetTypeDAO.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetZoneTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetZoneTypeService.java new file mode 100644 index 0000000..6613cd1 --- /dev/null +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaTargetZoneTypeService.java @@ -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 readAll() throws OverflowException { + return this.metaTargetZoneType.findAll(); + } +} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerSensorItemService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerSensorItemService.java deleted file mode 100644 index ae5ead2..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerSensorItemService.java +++ /dev/null @@ -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 { -} diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerService.java deleted file mode 100644 index b21f41e..0000000 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaVendorCrawlerService.java +++ /dev/null @@ -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 readAllByMetaInfraVendorID(Integer metaInfraVendorID) throws OverflowException { - - return this.crawlerDAO.findAllByMetaInfraVendorId(metaInfraVendorID); - } - - public MetaVendorCrawler regist(MetaVendorCrawler metaVendorCrawler) throws OverflowException { - return this.crawlerDAO.save(metaVendorCrawler); - } -}