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 org
.apache
.logging
.log4j
.LogManager
;
13 import org
.apache
.logging
.log4j
.Logger
;
15 import com
.vaadin
.annotations
.Theme
;
16 import com
.vaadin
.annotations
.Widgetset
;
17 import com
.vaadin
.navigator
.Navigator
;
18 import com
.vaadin
.server
.VaadinRequest
;
19 import com
.vaadin
.ui
.UI
;
21 import eu
.etaxonomy
.cdm
.vaadin
.view
.ConceptRelationshipView
;
29 // @SpringUI(path="concept") // not needed since this UI is used in the context of ConceptRelationshipUI
30 @Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet")
31 public class ConceptRelationshipUIRedirect
extends AbstractAuthenticatedUI
{
33 private static final long serialVersionUID
= -3709422890864662383L;
35 private final static Logger logger
= LogManager
.getLogger();
37 private static final String FIRST_VIEW
= "editcr";
42 protected void doInit(VaadinRequest request
) {
43 // FIXME: remove this when testing is done
44 //setIgnoreAuthentication(true);
46 getPage().setTitle("Concept Relationship Editor");
47 logger
.warn("original classification : " + request
.getParameter("oc"));
48 logger
.warn("copy classification : " + request
.getParameter("cc"));
49 String oc
= request
.getParameter("oc");
50 String cc
= request
.getParameter("cc");
52 ConceptRelationshipView crEditor
= new ConceptRelationshipView(oc
,cc
);
53 UI
.getCurrent().getNavigator().addView(FIRST_VIEW
, crEditor
);
58 public String
getFirstViewName() {