2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.vaadin
.ui
;
12 import javax
.servlet
.annotation
.WebServlet
;
14 import org
.apache
.log4j
.Logger
;
16 import com
.vaadin
.annotations
.Theme
;
17 import com
.vaadin
.annotations
.Widgetset
;
18 import com
.vaadin
.navigator
.Navigator
;
19 import com
.vaadin
.server
.VaadinRequest
;
20 import com
.vaadin
.spring
.server
.SpringVaadinServlet
;
21 import com
.vaadin
.ui
.UI
;
23 import eu
.etaxonomy
.cdm
.vaadin
.view
.ConceptRelationshipView
;
31 @Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet")
32 public class ConceptRelationshipUI
extends AbstractAuthenticatedUI
{
36 private static final String FIRST_VIEW
= "editcr";
38 private final static Logger logger
= Logger
.getLogger(ConceptRelationshipUI
.class);
40 @WebServlet(value
= {"/app/concept/*"}, asyncSupported
= true)
41 public static class Servlet
extends SpringVaadinServlet
{
45 protected void doInit(VaadinRequest request
) {
46 // FIXME: remove this when testing is done
47 //setIgnoreAuthentication(true);
49 getPage().setTitle("Concept Relationship Editor");
50 logger
.warn("original classification : " + request
.getParameter("oc"));
51 logger
.warn("copy classification : " + request
.getParameter("cc"));
52 String oc
= request
.getParameter("oc");
53 String cc
= request
.getParameter("cc");
55 ConceptRelationshipView crEditor
= new ConceptRelationshipView(oc
,cc
);
56 UI
.getCurrent().getNavigator().addView(FIRST_VIEW
, crEditor
);
61 public String
getFirstViewName() {