diff --git a/pom.xml b/pom.xml index 7cda140..ef2e4b2 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ com.loafle.overflow commons-java - 1.0.21-SNAPSHOT + 1.0.22-SNAPSHOT diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java index fcb4ebc..ef730dc 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaCryptoTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaCryptoTypeDAO extends JpaRepository { + MetaCryptoType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java index b27c488..cb555d9 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaEmailTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaEmailTypeDAO extends JpaRepository { + MetaEmailType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaHistoryTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaHistoryTypeDAO.java index d22f87b..bd5a1a6 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaHistoryTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaHistoryTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaHistoryTypeDAO extends JpaRepository { + MetaHistoryType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java index e804f7e..d4a91a9 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaIPTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaIPTypeDAO extends JpaRepository { + MetaIPType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraTypeDAO.java index 674b17d..08bc060 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInfraTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaInfraTypeDAO extends JpaRepository { + MetaInfraType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInputTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInputTypeDAO.java index 3610a61..c9c7d51 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInputTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaInputTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaInputTypeDAO extends JpaRepository { + MetaInputType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaMemberStatusDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaMemberStatusDAO.java index 32f4642..bb3c164 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaMemberStatusDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaMemberStatusDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaMemberStatusDAO extends JpaRepository { + MetaMemberStatus findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNoAuthProbeStatusDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNoAuthProbeStatusDAO.java index eb6cd44..c795a6a 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNoAuthProbeStatusDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaNoAuthProbeStatusDAO.java @@ -9,5 +9,6 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaNoAuthProbeStatusDAO extends JpaRepository { - + MetaNoAuthProbeStatus findByKey(String key); } + diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java index 3a32996..5434ce0 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaPortTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaPortTypeDAO extends JpaRepository { + MetaPortType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeStatusDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeStatusDAO.java index 80e20a2..5a4e17e 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeStatusDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaProbeStatusDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaProbeStatusDAO extends JpaRepository { + MetaProbeStatus findByKey(String key); } 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 index bebe928..6da7b96 100644 --- 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 @@ -9,4 +9,6 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaTargetHostTypeDAO extends JpaRepository { + MetaTargetHostType findByKey(String key); } + diff --git a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java index 1e9bcf1..e533e0b 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/dao/MetaTargetServiceTypeDAO.java @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaTargetServiceTypeDAO extends JpaRepository { + MetaTargetServiceType findByKey(String key); } 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 index c5b8470..285e7b7 100644 --- 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 @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaTargetStatusDAO extends JpaRepository { + MetaTargetStatus findByKey(String key); } 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 index 38d0e3d..ebb52bd 100644 --- 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 @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaTargetTypeCategoryDAO extends JpaRepository { + MetaTargetTypeCategory findByKey(String key); } 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 index 6409c5c..9908282 100644 --- 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 @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaTargetTypeDAO extends JpaRepository { + MetaTargetType findByKey(String key); } 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 index 40b4843..66b4fd0 100644 --- 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 @@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository; */ @Repository public interface MetaTargetZoneTypeDAO extends JpaRepository { + MetaTargetZoneType findByKey(String key); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerInputItemService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerInputItemService.java index c8649bb..5f43388 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerInputItemService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaCrawlerInputItemService.java @@ -16,9 +16,10 @@ import java.util.List; public class CentralMetaCrawlerInputItemService implements MetaCrawlerInputItemService { @Autowired - private MetaCrawlerInputItemDAO crawlerInputItemDAO; + private MetaCrawlerInputItemDAO metaCrawlerInputItemDAO; + @Override public List readAllByMetaCrawlerID(Short metaCrawlerID) throws OverflowException { - return this.crawlerInputItemDAO.findAllByMetaCrawlerId(metaCrawlerID); + return this.metaCrawlerInputItemDAO.findAllByMetaCrawlerId(metaCrawlerID); } } 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 index 08ddd2b..82fc6c3 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaCrawlerMappingService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,12 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaCrawlerMappingService") -public class CentralMetaCrawlerMappingService { +public class CentralMetaCrawlerMappingService implements MetaCrawlerMappingService { @Autowired private MetaCrawlerMappingDAO metaCrawlerMappingDAO; + @Override 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 7f53667..e9ef893 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 @@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service; import com.loafle.overflow.central.module.meta.dao.MetaCrawlerDAO; import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.model.meta.MetaCrawler; +import com.loafle.overflow.service.central.meta.MetaCrawlerService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,12 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaCrawlerService") -public class CentralMetaCrawlerService { +public class CentralMetaCrawlerService implements MetaCrawlerService { @Autowired private MetaCrawlerDAO metaCrawlerDAO; + @Override public List readAll() throws OverflowException { 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 index b740028..5a94abb 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaCryptoTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,21 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaCryptoTypeService") -public class CentralMetaCryptoTypeService { - +public class CentralMetaCryptoTypeService implements MetaCryptoTypeService { @Autowired private MetaCryptoTypeDAO metaCryptoTypeDAO; + @Override + public MetaCryptoType regist(MetaCryptoType metaCryptoType) throws OverflowException { + return this.metaCryptoTypeDAO.save(metaCryptoType); + } + + @Override + public MetaCryptoType readByKey(String key) throws OverflowException { + return this.metaCryptoTypeDAO.findByKey(key); + } + + @Override 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 index 03a2244..928c905 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaEmailTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaEmailTypeService") -public class CentralMetaEmailTypeService { +public class CentralMetaEmailTypeService implements MetaEmailTypeService { @Autowired private MetaEmailTypeDAO metaEmailTypeDAO; + @Override + public MetaEmailType regist(MetaEmailType metaCryptoType) throws OverflowException { + return this.metaEmailTypeDAO.save(metaCryptoType); + } + + @Override + public MetaEmailType readByKey(String key) throws OverflowException { + return this.metaEmailTypeDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { return this.metaEmailTypeDAO.findAll(); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaHistoryTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaHistoryTypeService.java index 2f32600..5879b65 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaHistoryTypeService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaHistoryTypeService.java @@ -17,17 +17,24 @@ import java.util.List; public class CentralMetaHistoryTypeService implements MetaHistoryTypeService { @Autowired - private MetaHistoryTypeDAO hisotyTypeDAO; - - public List readAll() throws OverflowException { - return this.hisotyTypeDAO.findAll(); - } + private MetaHistoryTypeDAO metaHistoryTypeDAO; public MetaHistoryType regist(MetaHistoryType type) throws OverflowException { - return this.hisotyTypeDAO.save(type); + return this.metaHistoryTypeDAO.save(type); } + @Override + public MetaHistoryType readByKey(String key) throws OverflowException { + return this.metaHistoryTypeDAO.findByKey(key); + } + + @Override + public List readAll() throws OverflowException { + return this.metaHistoryTypeDAO.findAll(); + } + + @Override public List registAll(List metaHistoryTypes) throws OverflowException { - return (List) this.hisotyTypeDAO.saveAll(metaHistoryTypes); + return (List) this.metaHistoryTypeDAO.saveAll(metaHistoryTypes); } } 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 index 13999f1..9392a28 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaIPTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaIPTypeService") -public class CentralMetaIPTypeService { +public class CentralMetaIPTypeService implements MetaIPTypeService { @Autowired private MetaIPTypeDAO metaIPTypeDAO; + @Override + public MetaIPType regist(MetaIPType metaIPType) throws OverflowException { + return this.metaIPTypeDAO.save(metaIPType); + } + + @Override + public MetaIPType readByKey(String key) throws OverflowException { + return this.metaIPTypeDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { return this.metaIPTypeDAO.findAll(); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraTypeService.java index 216bf64..cc3850e 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraTypeService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInfraTypeService.java @@ -17,9 +17,20 @@ import java.util.List; public class CentralMetaInfraTypeService implements MetaInfraTypeService { @Autowired - private MetaInfraTypeDAO infraTypeDAO; + private MetaInfraTypeDAO metaInfraTypeDAO; + @Override + public MetaInfraType regist(MetaInfraType metaCryptoType) throws OverflowException { + return this.metaInfraTypeDAO.save(metaCryptoType); + } + + @Override + public MetaInfraType readByKey(String key) throws OverflowException { + return this.metaInfraTypeDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { - return this.infraTypeDAO.findAll(); + return this.metaInfraTypeDAO.findAll(); } } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInputTypeService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInputTypeService.java index 92ffd28..378a54a 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInputTypeService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaInputTypeService.java @@ -16,9 +16,20 @@ import java.util.List; public class CentralMetaInputTypeService implements MetaInputTypeService { @Autowired - private MetaInputTypeDAO inputTypeDAO; + private MetaInputTypeDAO metaInputTypeDAO; + @Override + public MetaInputType regist(MetaInputType metaInputType) throws OverflowException { + return this.metaInputTypeDAO.save(metaInputType); + } + + @Override + public MetaInputType readByKey(String key) throws OverflowException { + return this.metaInputTypeDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { - return this.inputTypeDAO.findAll(); + return this.metaInputTypeDAO.findAll(); } } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaMemberStatusService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaMemberStatusService.java index 6cf1980..295b9e2 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaMemberStatusService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaMemberStatusService.java @@ -16,9 +16,20 @@ import java.util.List; public class CentralMetaMemberStatusService implements MetaMemberStatusService { @Autowired - private MetaMemberStatusDAO memberStatusDAO; + private MetaMemberStatusDAO metaMemberStatusDAO; + @Override + public MetaMemberStatus regist(MetaMemberStatus metaMemberStatus) throws OverflowException { + return this.metaMemberStatusDAO.save(metaMemberStatus); + } + + @Override + public MetaMemberStatus readByKey(String key) throws OverflowException { + return this.metaMemberStatusDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { - return this.memberStatusDAO.findAll(); + return this.metaMemberStatusDAO.findAll(); } } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaNoAuthProbeStatusService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaNoAuthProbeStatusService.java index 3d7f966..a8b504f 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaNoAuthProbeStatusService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaNoAuthProbeStatusService.java @@ -16,9 +16,20 @@ import java.util.List; @Service("MetaNoAuthProbeStatusService") public class CentralMetaNoAuthProbeStatusService implements MetaNoAuthProbeStatusService { @Autowired - private MetaNoAuthProbeStatusDAO noAuthProbeStatusDAO; + private MetaNoAuthProbeStatusDAO metaNoAuthProbeStatusDAO; + @Override + public MetaNoAuthProbeStatus regist(MetaNoAuthProbeStatus metaNoAuthProbeStatus) throws OverflowException { + return this.metaNoAuthProbeStatusDAO.save(metaNoAuthProbeStatus); + } + + @Override + public MetaNoAuthProbeStatus readByKey(String key) throws OverflowException { + return this.metaNoAuthProbeStatusDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { - return this.noAuthProbeStatusDAO.findAll(); + return this.metaNoAuthProbeStatusDAO.findAll(); } } 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 index 85b5b3a..af9a62d 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaPortTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaPortTypeService") -public class CentralMetaPortTypeService { +public class CentralMetaPortTypeService implements MetaPortTypeService { @Autowired private MetaPortTypeDAO metaPortTypeDAO; + @Override + public MetaPortType regist(MetaPortType metaCryptoType) throws OverflowException { + return this.metaPortTypeDAO.save(metaCryptoType); + } + + @Override + public MetaPortType readByKey(String key) throws OverflowException { + return this.metaPortTypeDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { return this.metaPortTypeDAO.findAll(); } diff --git a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeStatusService.java b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeStatusService.java index c855846..6570fe9 100644 --- a/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeStatusService.java +++ b/src/main/java/com/loafle/overflow/central/module/meta/service/CentralMetaProbeStatusService.java @@ -16,9 +16,20 @@ import java.util.List; public class CentralMetaProbeStatusService implements MetaProbeStatusService { @Autowired - private MetaProbeStatusDAO probeStatusDAO; + private MetaProbeStatusDAO metaProbeStatusDAO; + @Override + public MetaProbeStatus regist(MetaProbeStatus metaProbeStatus) throws OverflowException { + return this.metaProbeStatusDAO.save(metaProbeStatus); + } + + @Override + public MetaProbeStatus readByKey(String key) throws OverflowException { + return this.metaProbeStatusDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { - return this.probeStatusDAO.findAll(); + return this.metaProbeStatusDAO.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 index 8cd259d..d4dfbd9 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetHostTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetHostTypeService") -public class CentralMetaTargetHostTypeService { +public class CentralMetaTargetHostTypeService implements MetaTargetHostTypeService { @Autowired private MetaTargetHostTypeDAO metaTargetHostTypeDAO; + @Override + public MetaTargetHostType regist(MetaTargetHostType metaTargetHostType) throws OverflowException { + return this.metaTargetHostTypeDAO.save(metaTargetHostType); + } + + @Override + public MetaTargetHostType readByKey(String key) throws OverflowException { + return this.metaTargetHostTypeDAO.findByKey(key); + } + + @Override 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 index da585e2..c5c7446 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetServiceTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetServiceTypeService") -public class CentralMetaTargetServiceTypeService { +public class CentralMetaTargetServiceTypeService implements MetaTargetServiceTypeService { @Autowired private MetaTargetServiceTypeDAO metaTargetServiceTypeDAO; + @Override + public MetaTargetServiceType regist(MetaTargetServiceType metaTargetServiceType) throws OverflowException { + return this.metaTargetServiceTypeDAO.save(metaTargetServiceType); + } + + @Override + public MetaTargetServiceType readByKey(String key) throws OverflowException { + return this.metaTargetServiceTypeDAO.findByKey(key); + } + + @Override 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 index 354c02a..0300b61 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetStatusService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetStatusService") -public class CentralMetaTargetStatusService { +public class CentralMetaTargetStatusService implements MetaTargetStatusService { @Autowired private MetaTargetStatusDAO metaTargetStatusDAO; + @Override + public MetaTargetStatus regist(MetaTargetStatus metaTargetStatus) throws OverflowException { + return this.metaTargetStatusDAO.save(metaTargetStatus); + } + + @Override + public MetaTargetStatus readByKey(String key) throws OverflowException { + return this.metaTargetStatusDAO.findByKey(key); + } + + @Override 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 index df382f1..70f92b5 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetTypeCategoryMappingService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,12 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetTypeCategoryMappingService") -public class CentralMetaTargetTypeCategoryMappingService { +public class CentralMetaTargetTypeCategoryMappingService implements MetaTargetTypeCategoryMappingService { @Autowired private MetaTargetTypeCategoryMappingDAO metaTargetTypeCategoryMappingDAO; + @Override 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 index b238fd6..1fc066c 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetTypeCategoryService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetTypeCategoryService") -public class CentralMetaTargetTypeCategoryService { +public class CentralMetaTargetTypeCategoryService implements MetaTargetTypeCategoryService { @Autowired private MetaTargetTypeCategoryDAO metaTargetTypeCategoryDAO; + @Override + public MetaTargetTypeCategory regist(MetaTargetTypeCategory metaTargetTypeCategory) throws OverflowException { + return this.metaTargetTypeCategoryDAO.save(metaTargetTypeCategory); + } + + @Override + public MetaTargetTypeCategory readByKey(String key) throws OverflowException { + return this.metaTargetTypeCategoryDAO.findByKey(key); + } + + @Override 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 index 4cb499e..de97d30 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,11 +14,22 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetTypeService") -public class CentralMetaTargetTypeService { +public class CentralMetaTargetTypeService implements MetaTargetTypeService { @Autowired private MetaTargetTypeDAO metaTargetTypeDAO; + @Override + public MetaTargetType regist(MetaTargetType metaTargetType) throws OverflowException { + return this.metaTargetTypeDAO.save(metaTargetType); + } + + @Override + public MetaTargetType readByKey(String key) throws OverflowException { + return this.metaTargetTypeDAO.findByKey(key); + } + + @Override 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 index 6613cd1..bf43879 100644 --- 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 @@ -3,6 +3,8 @@ 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 com.loafle.overflow.service.central.meta.MetaTargetZoneTypeService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -12,12 +14,23 @@ import java.util.List; * Created by snoop on 17. 7. 27. */ @Service("MetaTargetZoneTypeService") -public class CentralMetaTargetZoneTypeService { +public class CentralMetaTargetZoneTypeService implements MetaTargetZoneTypeService { @Autowired - private MetaTargetZoneTypeDAO metaTargetZoneType; + private MetaTargetZoneTypeDAO metaTargetZoneTypeDAO; + @Override + public MetaTargetZoneType regist(MetaTargetZoneType metaTargetZoneType) throws OverflowException { + return this.metaTargetZoneTypeDAO.save(metaTargetZoneType); + } + + @Override + public MetaTargetZoneType readByKey(String key) throws OverflowException { + return this.metaTargetZoneTypeDAO.findByKey(key); + } + + @Override public List readAll() throws OverflowException { - return this.metaTargetZoneType.findAll(); + return this.metaTargetZoneTypeDAO.findAll(); } }