diff src/main/java/de/mpiwg/gazetteer/utils/DataProvider.java @ 43:9dbbbfd474f4

new: 1.existing topic in search result. 2.difference-set of book for topic
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 23 Dec 2015 16:03:32 +0100
parents ba9515f22897
children 13555aff1f88
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/gazetteer/utils/DataProvider.java	Fri Dec 18 11:50:24 2015 +0100
+++ b/src/main/java/de/mpiwg/gazetteer/utils/DataProvider.java	Wed Dec 23 16:03:32 2015 +0100
@@ -22,7 +22,7 @@
 
 public class DataProvider extends AbstractDataProvider{
 	
-	private static Logger logger = Logger.getLogger(DBService.class);
+	private static Logger logger = Logger.getLogger(DataProvider.class);
 	private static DataProvider instance;
 	
 	public static DataProvider getInstance(){
@@ -54,6 +54,14 @@
 		return list;
 	}
 	
+	public List<LGTopicSectionRelation> getAllExistingTopicSectionRelation() {
+		List<LGTopicSectionRelation> list = new ArrayList<LGTopicSectionRelation>();
+		for (LGTopicSectionRelation relation : getTopicSectionRelationMap().values()) {
+			list.add(relation);
+		}
+		return list;
+	}
+	
 	public List<LGBranch> getAllExistingBranches(){
 		List<LGBranch> list = new ArrayList<LGBranch>();
 		for(LGBranch branch : getBranchMap().values()){	
@@ -392,7 +400,7 @@
 		// get sections from topicSecionRelation list
 		List<DBSection> list = new ArrayList<DBSection>();
 		for (LGTopicSectionRelation aRelation : topicSectionRelationList) {
-			logger.debug(aRelation.getInfo() );
+			//logger.debug(aRelation.getInfo() );
 			
 			DBSection section = DBService.getSectionWithContent(aRelation.getSectionId());
 			list.add(section);