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); - } -}