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
|
/**
|
13
|
* @author cmathew
|
14
|
* @date 11 Mar 2015
|
15
|
*
|
16
|
*/
|
17
|
|
18
|
|
19
|
import java.util.logging.Logger;
|
20
|
|
21
|
import javax.servlet.annotation.WebServlet;
|
22
|
|
23
|
import com.vaadin.annotations.Theme;
|
24
|
import com.vaadin.annotations.VaadinServletConfiguration;
|
25
|
import com.vaadin.navigator.Navigator;
|
26
|
import com.vaadin.server.VaadinServlet;
|
27
|
import com.vaadin.ui.UI;
|
28
|
|
29
|
import eu.etaxonomy.cdm.vaadin.view.StatusEditorView;
|
30
|
|
31
|
|
32
|
@Theme("edit")
|
33
|
public class StatusEditorUI extends AbstractAuthenticatedUI {
|
34
|
|
35
|
Navigator navigator;
|
36
|
|
37
|
private static final String FIRST_VIEW = "editstatus";
|
38
|
|
39
|
private final static Logger logger =
|
40
|
Logger.getLogger(StatusEditorUI.class.getName());
|
41
|
|
42
|
@WebServlet(value = {"/app/editstatus/*"}, asyncSupported = true)
|
43
|
@VaadinServletConfiguration(productionMode = false, ui = StatusEditorUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
|
44
|
public static class Servlet extends VaadinServlet {
|
45
|
}
|
46
|
|
47
|
@Override
|
48
|
protected void doInit() {
|
49
|
// FIXME: remove this when testing is done
|
50
|
//setIgnoreAuthentication(true);
|
51
|
|
52
|
getPage().setTitle("Status Editor");
|
53
|
StatusEditorView statusEditorView = new StatusEditorView();
|
54
|
UI.getCurrent().getNavigator().addView(FIRST_VIEW, statusEditorView);
|
55
|
|
56
|
}
|
57
|
|
58
|
@Override
|
59
|
public String getFirstViewName() {
|
60
|
return FIRST_VIEW;
|
61
|
}
|
62
|
|
63
|
}
|