Do some resetting of session on login
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Fri, 12 Apr 2013 02:46:43 +0000 (22:46 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Fri, 12 Apr 2013 02:46:43 +0000 (22:46 -0400)
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java

index 0f9e97d..6982f9c 100644 (file)
@@ -45,7 +45,10 @@ public class Pz2ProxyBean extends Pz2Bean implements ServiceProxyInterface {
   @Override\r
   public String login(String navigateTo) {\r
     logger.info("doing login");\r
-    ((ServiceProxySession) pz2).setUser(user);\r
+    session().setUser(user);\r
+    session().resetDataObjects();\r
+    session().removeCommand("record");\r
+    session().setQuery(null);\r
     return session().login(navigateTo);\r
   }\r
 \r