1
|
package eu.etaxonomy.cdm.vaadin.ui;
|
2
|
|
3
|
import com.vaadin.annotations.Theme;
|
4
|
import com.vaadin.annotations.Title;
|
5
|
import com.vaadin.annotations.Widgetset;
|
6
|
import com.vaadin.navigator.Navigator;
|
7
|
import com.vaadin.server.VaadinRequest;
|
8
|
import com.vaadin.ui.UI;
|
9
|
|
10
|
import eu.etaxonomy.cdm.vaadin.view.dbstatus.RedirectAfterLoginView;
|
11
|
|
12
|
@Theme("edit")
|
13
|
@Title("CDM Board")
|
14
|
// @SpringUI(path="distribution") // not needed since this UI is used in the context of DbStatusUI
|
15
|
@Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet")
|
16
|
@SuppressWarnings("serial")
|
17
|
public class DbStatusUIRedirect extends AbstractAuthenticatedUI{
|
18
|
|
19
|
private static final String FIRST_VIEW = "firstView";
|
20
|
|
21
|
// not needed since this UI is used in the context of DbStatusUI
|
22
|
// @WebServlet(value = {"/app/*"}, asyncSupported = true)
|
23
|
// public static class Servlet extends CdmVaadinConversationalServlet {
|
24
|
// }
|
25
|
|
26
|
|
27
|
@Override
|
28
|
protected void doInit(VaadinRequest request) {
|
29
|
Navigator navigator = UI.getCurrent().getNavigator();
|
30
|
RedirectAfterLoginView view = new RedirectAfterLoginView();
|
31
|
navigator.addView(getFirstViewName(), view);
|
32
|
}
|
33
|
|
34
|
@Override
|
35
|
public String getFirstViewName() {
|
36
|
return FIRST_VIEW;
|
37
|
}
|
38
|
|
39
|
}
|