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 com.vaadin.data.util.sqlcontainer.query.generator.filter.QueryBuilder;
|
13
|
import com.vaadin.server.VaadinRequest;
|
14
|
import com.vaadin.ui.UI;
|
15
|
|
16
|
import eu.etaxonomy.cdm.vaadin.util.CdmSQLStringDecorator;
|
17
|
import eu.etaxonomy.cdm.vaadin.util.CdmVaadinSessionUtilities;
|
18
|
|
19
|
/**
|
20
|
* @author cmathew
|
21
|
* @date 7 Apr 2015
|
22
|
*
|
23
|
*/
|
24
|
public class CdmBaseUI extends UI {
|
25
|
|
26
|
/* (non-Javadoc)
|
27
|
* @see com.vaadin.ui.UI#init(com.vaadin.server.VaadinRequest)
|
28
|
*/
|
29
|
@Override
|
30
|
protected void init(VaadinRequest request) {
|
31
|
// TODO: Need to evaluate the various sql dialects and make sure that these
|
32
|
// queries are compatible with all
|
33
|
QueryBuilder.setStringDecorator(new CdmSQLStringDecorator());
|
34
|
|
35
|
CdmVaadinSessionUtilities.initCdmDataChangeService();
|
36
|
|
37
|
CdmVaadinSessionUtilities.initSelectionService();
|
38
|
}
|
39
|
|
40
|
}
|