diff src/main/java/de/mpiwg/web/jsp/SessionBean.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 db2088ac1f50
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/web/jsp/SessionBean.java	Fri Dec 18 11:50:24 2015 +0100
+++ b/src/main/java/de/mpiwg/web/jsp/SessionBean.java	Wed Dec 23 16:03:32 2015 +0100
@@ -11,6 +11,7 @@
 
 import de.mpiwg.gazetteer.dataverse.DataverseUtils;
 import de.mpiwg.gazetteer.dataverse.bo.VDCUser;
+import de.mpiwg.gazetteer.utils.DataProvider;
 
 public class SessionBean extends AbstractJSPPage {
 
@@ -56,8 +57,14 @@
 		this.homePage = new HomePage();
 		this.createFilePage = new CreateFilePage();
 		this.branchPage = new BranchPage();
+		
+		this.booksPage = new BooksPage();
+		this.topicListPage = new TopicListPage();
+		this.topicPage = new TopicPage();
+
 		this.userName = new String();
 		this.password = new String();
+		
 	}
 	
 	public List<String> getMsgList() {
@@ -89,10 +96,13 @@
 				// check if user has role in the "Chinese Local Gazetteers" Dataverse, rather than the following hardcoded checking
 				// use dvn/getRoleAssignments?user=&password=&datasetId=
 				if ( StringUtils.equals(userName, "dataverseAdmin") || DataverseUtils.isUserInLG(userName, password) || DataverseUtils.isUserInGroups(this.user.getUserName(), theUserGroups)){
+					
 					this.user.setPassword(this.password);
 					this.homePage.loadParameters(request, response);
 					this.homePage.reloadBranches();	
 					
+					
+					
 				} else {					
 					this.user = null;