ref #7458 solving generic type parameter problem in FilterableAnnotationsField
[cdm-vaadin.git] / src / main / java / eu / etaxonomy / cdm / vaadin / ui / RegistrationUIDefaults.java
1 /**
2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.cdm.vaadin.ui;
10
11 import java.util.EnumSet;
12
13 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
14 import eu.etaxonomy.cdm.model.reference.ReferenceType;
15
16 /**
17 * @author a.kohlbecker
18 * @since Jan 12, 2018
19 *
20 */
21 public class RegistrationUIDefaults {
22
23 public static final EnumSet<ReferenceType> PRINTPUB_REFERENCE_TYPES = EnumSet.of(
24 ReferenceType.Article,
25 ReferenceType.Book,
26 ReferenceType.InProceedings,
27 ReferenceType.Journal,
28 ReferenceType.PrintSeries,
29 ReferenceType.Proceedings,
30 ReferenceType.Section,
31 ReferenceType.Thesis);
32
33 public static final EnumSet<ReferenceType> MEDIA_REFERENCE_TYPES = EnumSet.of(
34 // same as for print
35 ReferenceType.Article,
36 ReferenceType.Book,
37 ReferenceType.InProceedings,
38 ReferenceType.Journal,
39 ReferenceType.PrintSeries,
40 ReferenceType.Proceedings,
41 ReferenceType.Section,
42 ReferenceType.Thesis,
43 // additional
44 ReferenceType.WebPage,
45 ReferenceType.Database,
46 ReferenceType.CdDvd,
47 ReferenceType.Report
48 );
49
50 /**
51 * TODO make configurable as preset and in TaxonNameEditor
52 */
53 public static final NomenclaturalCode NOMENCLATURAL_CODE = NomenclaturalCode.ICNAFP;
54
55 public static final String ERROR_CONTACT_MESSAGE_LINE = "Please contact <a href=\"mailto:editsupport@bgbm.org\">editsupport@bgbm.org</a> for support and more information.";
56 }