1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.vaadin.ui;
|
11
|
|
12
|
import java.util.logging.Logger;
|
13
|
|
14
|
import javax.servlet.annotation.WebServlet;
|
15
|
|
16
|
import com.vaadin.annotations.Theme;
|
17
|
import com.vaadin.annotations.VaadinServletConfiguration;
|
18
|
import com.vaadin.navigator.Navigator;
|
19
|
import com.vaadin.server.VaadinServlet;
|
20
|
import com.vaadin.ui.UI;
|
21
|
|
22
|
import eu.etaxonomy.cdm.vaadin.view.ConceptRelationshipView;
|
23
|
|
24
|
/**
|
25
|
* @author cmathew
|
26
|
* @date 9 Apr 2015
|
27
|
*
|
28
|
*/
|
29
|
@Theme("edit")
|
30
|
public class ConceptRelationshipUI extends AbstractAuthenticatedUI {
|
31
|
|
32
|
Navigator navigator;
|
33
|
|
34
|
private static final String FIRST_VIEW = "editcr";
|
35
|
|
36
|
private final static Logger logger =
|
37
|
Logger.getLogger(ConceptRelationshipUI.class.getName());
|
38
|
|
39
|
@WebServlet(value = {"/app/editcr/*"}, asyncSupported = true)
|
40
|
@VaadinServletConfiguration(productionMode = false, ui = ConceptRelationshipUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
|
41
|
public static class Servlet extends VaadinServlet {
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
protected void doInit() {
|
46
|
// FIXME: remove this when testing is done
|
47
|
//setIgnoreAuthentication(true);
|
48
|
|
49
|
getPage().setTitle("Concept Relationship Editor");
|
50
|
ConceptRelationshipView crEditor = new ConceptRelationshipView();
|
51
|
UI.getCurrent().getNavigator().addView(FIRST_VIEW, crEditor);
|
52
|
|
53
|
}
|
54
|
|
55
|
@Override
|
56
|
public String getFirstViewName() {
|
57
|
return FIRST_VIEW;
|
58
|
}
|
59
|
|
60
|
}
|