cdmlib-remote-webapp/pom.xml -text
cdmlib-remote-webapp/src/main/java/eu/etaxonomy/cdm/remote/config/PreloadedBeans.java -text
cdmlib-remote-webapp/src/main/java/eu/etaxonomy/cdm/remote/config/SpringMVCConfig.java -text
+cdmlib-remote-webapp/src/main/java/eu/etaxonomy/cdm/remote/vaadin/redlist/wigetset/AppWidgetSet.gwt.xml -text
cdmlib-remote-webapp/src/main/resources/log4j.properties -text
cdmlib-remote-webapp/src/main/webapp/VAADIN/themes/mytheme/favicon.ico -text
cdmlib-remote-webapp/src/main/webapp/VAADIN/themes/mytheme/icons/32/Thumbs.db -text
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
+<module>
+ <!--
+ Uncomment the following to compile the widgetset for one browser only.
+
+ Multiple browsers can be specified as a comma separated list. The
+ supported user agents at the moment of writing were:
+ ie8,ie9,gecko1_8,safari,opera
+
+ The value gecko1_8 is used for Firefox and safari is used for webkit
+ based browsers including Google Chrome.
+ -->
+ <!-- <set-property name="user.agent" value="safari"/> -->
+
+ <!--
+ To enable SuperDevMode, uncomment this line.
+
+ See https://vaadin.com/wiki/-/wiki/Main/Using%20SuperDevMode for more
+ information and instructions.
+ -->
+ <!-- <set-configuration-property name="devModeRedirectEnabled" value="true" /> -->
+
+
+
+ <inherits name="com.vaadin.DefaultWidgetSet" />
+</module>
<param-value>eu.etaxonomy.cdm.remote.vaadin.widgetset.AppWidgetSet</param-value>
</init-param>
</servlet>
+ <!-- Set to production Mode to true if deployment for server is needed, otherwise set to false for debugging -->
+ <context-param>
+ <param-name>productionMode</param-name>
+ <param-value>true</param-value>
+ </context-param>
<servlet-mapping>
<servlet-name>Vaadin Application Servlet</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
<url-pattern>/edit/*</url-pattern>
</servlet-mapping>
+
<filter>
<filter-name>charsetFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
private static final long serialVersionUID = 1L;
- ITaxonNodeService taxonNodeService;
- IClassificationService classificationService;
- IDescriptionService descriptionService;
+ transient ITaxonNodeService taxonNodeService;
+ transient IClassificationService classificationService;
+ transient IDescriptionService descriptionService;
VaadinSession session;
UUID uuid;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
+import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
try{
Authentication authentication = authenticationManager.authenticate(token);
conversationHolder = new ConversationHolder(dataSource, sessionFactory, transactionManager);
+ Session session = conversationHolder.getSession();
conversationHolder.startTransaction();
SecurityContext context = SecurityContextHolder.getContext();
context.setAuthentication(authentication);
// SecurityContextHolder.setStrategyName( SecurityContextHolder.MODE_GLOBAL );
setUserName(user);
- VaadinService.getCurrentRequest().getWrappedSession().setAttribute("context", context);
+// VaadinService.getCurrentRequest().getWrappedSession().setAttribute("context", context);
VaadinService.getCurrentRequest().getWrappedSession().setAttribute("isAuthenticated", true);
// logger.info("VaadinSession: "+ VaadinSession.getCurrent().getSession().getAttribute("context"));
return true;
ui.close();
conversationHolder.clear();
conversationHolder.close();
- conversationHolder.getSessionHolder().getSession().close();
+// conversationHolder.getSessionHolder().getSession().close();
// VaadinSession.getCurrent().close();
VaadinService.getCurrentRequest().getWrappedSession().invalidate();
ui.getSession().close();
@Override
public void enter(ViewChangeEvent event) {
-
+
}
}