email token duplication check
This commit is contained in:
parent
c29ea212b5
commit
e8ecaefb92
|
@ -10,4 +10,5 @@ import org.springframework.stereotype.Repository;
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaCollectionItemDAO extends JpaRepository<MetaCollectionItem, Integer> {
|
public interface MetaCollectionItemDAO extends JpaRepository<MetaCollectionItem, Integer> {
|
||||||
|
MetaCollectionItem findByKey(String key);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.dao;
|
||||||
|
|
||||||
|
import com.loafle.overflow.model.meta.MetaCrawlerContainer;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface MetaCrawlerContainerDAO extends JpaRepository<MetaCrawlerContainer, Short> {
|
||||||
|
}
|
|
@ -4,9 +4,14 @@ import com.loafle.overflow.model.meta.MetaCrawlerMapping;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by insanity on 17. 6. 23.
|
* Created by insanity on 17. 6. 23.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaCrawlerMappingDAO extends JpaRepository<MetaCrawlerMapping, Long> {
|
public interface MetaCrawlerMappingDAO extends JpaRepository<MetaCrawlerMapping, Long> {
|
||||||
|
List<MetaCrawlerMapping> findAllByMetaTargetTypeId(Integer targetTypeID);
|
||||||
|
|
||||||
|
List<MetaCrawlerMapping> findAllByMetaTargetTypeKey(String targetTypeKey);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,15 @@ import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import com.loafle.overflow.model.meta.MetaDisplayItemMapping;
|
import com.loafle.overflow.model.meta.MetaDisplayItemMapping;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by insanity on 17. 11. 7.
|
* Created by insanity on 17. 11. 7.
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaDisplayItemMappingDAO extends JpaRepository<MetaDisplayItemMapping, Short> {
|
public interface MetaDisplayItemMappingDAO extends JpaRepository<MetaDisplayItemMapping, Short> {
|
||||||
|
|
||||||
|
List<MetaDisplayItemMapping> findAllByMetaCrawlerMappingId(Long metaCrawlerMappingID);
|
||||||
|
|
||||||
|
List<MetaDisplayItemMapping> findAllByMetaDisplayItemId(Long metaDisplayItemID);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,5 @@ import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface MetaItemUnitDAO extends JpaRepository<MetaItemUnit, Short> {
|
public interface MetaItemUnitDAO extends JpaRepository<MetaItemUnit, Short> {
|
||||||
|
MetaItemUnit findByKey(String key);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaCollectionItemDAO;
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
import com.loafle.overflow.model.meta.MetaCollectionItem;
|
import com.loafle.overflow.model.meta.MetaCollectionItem;
|
||||||
import com.loafle.overflow.service.central.meta.MetaCollectionItemService;
|
import com.loafle.overflow.service.central.meta.MetaCollectionItemService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -13,9 +15,22 @@ import java.util.List;
|
||||||
@Service("MetaCollectionItemService")
|
@Service("MetaCollectionItemService")
|
||||||
public class CentralMetaCollectionItemService implements MetaCollectionItemService {
|
public class CentralMetaCollectionItemService implements MetaCollectionItemService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
MetaCollectionItemDAO metaCollectionItemDAO;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<MetaCollectionItem> readAll() throws OverflowException {
|
public List<MetaCollectionItem> readAll() throws OverflowException {
|
||||||
return null;
|
return this.metaCollectionItemDAO.findAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaCollectionItem readByKey(String key) throws OverflowException {
|
||||||
|
return this.metaCollectionItemDAO.findByKey(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaCollectionItem readByID(Integer id) throws OverflowException {
|
||||||
|
return this.metaCollectionItemDAO.getOne(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaCrawlerContainerDAO;
|
||||||
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
|
import com.loafle.overflow.model.meta.MetaCrawlerContainer;
|
||||||
|
import com.loafle.overflow.service.central.meta.MetaCrawlerContainerService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
public class CentralMetaCrawlerContainerService implements MetaCrawlerContainerService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MetaCrawlerContainerDAO metaCrawlerContainerDAO;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaCrawlerContainer regist(MetaCrawlerContainer metaCrawlerContainer) throws OverflowException {
|
||||||
|
return this.metaCrawlerContainerDAO.save(metaCrawlerContainer);
|
||||||
|
}
|
||||||
|
}
|
|
@ -23,4 +23,19 @@ public class CentralMetaCrawlerMappingService implements MetaCrawlerMappingServi
|
||||||
public List<MetaCrawlerMapping> readAll() throws OverflowException {
|
public List<MetaCrawlerMapping> readAll() throws OverflowException {
|
||||||
return this.metaCrawlerMappingDAO.findAll();
|
return this.metaCrawlerMappingDAO.findAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MetaCrawlerMapping> readAllByMetaTargetTypeID(Integer targetTypeID) throws OverflowException {
|
||||||
|
return this.metaCrawlerMappingDAO.findAllByMetaTargetTypeId(targetTypeID);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MetaCrawlerMapping> readAllByMetaTargetTypeKey(String targetTypeKey) throws OverflowException {
|
||||||
|
return this.metaCrawlerMappingDAO.findAllByMetaTargetTypeKey(targetTypeKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaCrawlerMapping regist(MetaCrawlerMapping metaCrawlerMapping) throws OverflowException {
|
||||||
|
return this.metaCrawlerMappingDAO.save(metaCrawlerMapping);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,45 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaDisplayItemMappingDAO;
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
import com.loafle.overflow.model.meta.MetaDisplayItemMapping;
|
import com.loafle.overflow.model.meta.MetaDisplayItemMapping;
|
||||||
import com.loafle.overflow.service.central.meta.MetaDisplayItemMappingService;
|
import com.loafle.overflow.service.central.meta.MetaDisplayItemMappingService;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by insanity on 17. 11. 7.
|
* Created by insanity on 17. 11. 7.
|
||||||
*/
|
*/
|
||||||
@Service("MetaDisplayItemMappingService")
|
@Service("MetaDisplayItemMappingService")
|
||||||
public class CentralMetaDisplayItemMappingService implements MetaDisplayItemMappingService {
|
public class CentralMetaDisplayItemMappingService implements MetaDisplayItemMappingService {
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private MetaSensorDisplayMappingDAO mappingDAO;
|
private MetaDisplayItemMappingDAO metaDisplayItemMappingDAO;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaDisplayItemMapping regist(MetaDisplayItemMapping metaDisplayItemMapping) throws OverflowException {
|
public MetaDisplayItemMapping regist(MetaDisplayItemMapping metaDisplayItemMapping) throws OverflowException {
|
||||||
|
return this.metaDisplayItemMappingDAO.save(metaDisplayItemMapping);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MetaDisplayItemMapping> readAllByMetaDisplayItemID(Long metaDisplayItemID) throws OverflowException {
|
||||||
|
return this.metaDisplayItemMappingDAO.findAllByMetaDisplayItemId(metaDisplayItemID);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MetaDisplayItemMapping> readAllByMetaCrawlerMappingID(Long metaCrawlerMappingID) throws OverflowException {
|
||||||
|
return this.metaDisplayItemMappingDAO.findAllByMetaCrawlerMappingId(metaCrawlerMappingID);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaDisplayItemMapping read(Long ID) throws OverflowException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MetaDisplayItemMapping> readAll() throws OverflowException {
|
||||||
|
return this.metaDisplayItemMappingDAO.findAll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,25 +1,34 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaDisplayItemDAO;
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
import com.loafle.overflow.model.meta.MetaDisplayItem;
|
import com.loafle.overflow.model.meta.MetaDisplayItem;
|
||||||
import com.loafle.overflow.service.central.meta.MetaDisplayItemService;
|
import com.loafle.overflow.service.central.meta.MetaDisplayItemService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by insanity on 17. 9. 20.
|
* Created by insanity on 17. 9. 20.
|
||||||
*/
|
*/
|
||||||
@Service("MetaDisplayItemService")
|
@Service("MetaDisplayItemService")
|
||||||
public class CentralMetaDisplayItemService implements MetaDisplayItemService {
|
public class CentralMetaDisplayItemService implements MetaDisplayItemService {
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private MetaSensorDisplayItemDAO metaSensorDisplayItemDAO;
|
private MetaDisplayItemDAO metaDisplayItemDAO;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaDisplayItem regist(MetaDisplayItem metaDisplayItem) throws OverflowException {
|
public MetaDisplayItem regist(MetaDisplayItem metaDisplayItem) throws OverflowException {
|
||||||
return null;
|
return this.metaDisplayItemDAO.save(metaDisplayItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaDisplayItem read(Long id) throws OverflowException {
|
public MetaDisplayItem read(Long id) throws OverflowException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MetaDisplayItem> readAll() throws OverflowException {
|
||||||
|
return this.metaDisplayItemDAO.findAll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
package com.loafle.overflow.central.module.meta.service;
|
package com.loafle.overflow.central.module.meta.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.central.module.meta.dao.MetaItemUnitDAO;
|
||||||
import com.loafle.overflow.core.exception.OverflowException;
|
import com.loafle.overflow.core.exception.OverflowException;
|
||||||
import com.loafle.overflow.model.meta.MetaItemUnit;
|
import com.loafle.overflow.model.meta.MetaItemUnit;
|
||||||
import com.loafle.overflow.service.central.meta.MetaItemUnitService;
|
import com.loafle.overflow.service.central.meta.MetaItemUnitService;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,8 +15,21 @@ import org.springframework.stereotype.Service;
|
||||||
@Service("MetaSensorItemUnitService")
|
@Service("MetaSensorItemUnitService")
|
||||||
public class CentralMetaItemUnitService implements MetaItemUnitService {
|
public class CentralMetaItemUnitService implements MetaItemUnitService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
MetaItemUnitDAO metaItemUnitDAO;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaItemUnit regist(MetaItemUnit metaItemUnit) throws OverflowException {
|
public MetaItemUnit regist(MetaItemUnit metaItemUnit) throws OverflowException {
|
||||||
|
return this.metaItemUnitDAO.save(metaItemUnit);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaItemUnit read(Short ID) throws OverflowException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetaItemUnit readByKey(String key) throws OverflowException {
|
||||||
|
return this.metaItemUnitDAO.findByKey(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user