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.Arrays;
|
12
|
import java.util.EnumSet;
|
13
|
import java.util.List;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.common.AnnotationType;
|
16
|
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
17
|
import eu.etaxonomy.cdm.model.reference.ReferenceType;
|
18
|
import eu.etaxonomy.cdm.persistence.hibernate.permission.Role;
|
19
|
import eu.etaxonomy.cdm.vaadin.permission.RolesAndPermissions;
|
20
|
|
21
|
/**
|
22
|
* @author a.kohlbecker
|
23
|
* @since Jan 12, 2018
|
24
|
*
|
25
|
*/
|
26
|
public class RegistrationUIDefaults {
|
27
|
|
28
|
public static final EnumSet<ReferenceType> PRINTPUB_REFERENCE_TYPES = EnumSet.of(
|
29
|
ReferenceType.Article,
|
30
|
ReferenceType.Book,
|
31
|
ReferenceType.InProceedings,
|
32
|
ReferenceType.Journal,
|
33
|
ReferenceType.PrintSeries,
|
34
|
ReferenceType.Proceedings,
|
35
|
ReferenceType.Section,
|
36
|
ReferenceType.Thesis);
|
37
|
|
38
|
public static final EnumSet<ReferenceType> MEDIA_REFERENCE_TYPES = EnumSet.of(
|
39
|
// same as for print
|
40
|
ReferenceType.Article,
|
41
|
ReferenceType.Book,
|
42
|
ReferenceType.InProceedings,
|
43
|
ReferenceType.Journal,
|
44
|
ReferenceType.PrintSeries,
|
45
|
ReferenceType.Proceedings,
|
46
|
ReferenceType.Section,
|
47
|
ReferenceType.Thesis,
|
48
|
// additional
|
49
|
ReferenceType.WebPage,
|
50
|
ReferenceType.Database,
|
51
|
ReferenceType.CdDvd,
|
52
|
ReferenceType.Report
|
53
|
);
|
54
|
|
55
|
/**
|
56
|
* TODO make configurable as preset and in TaxonNameEditor
|
57
|
*/
|
58
|
public static final NomenclaturalCode NOMENCLATURAL_CODE = NomenclaturalCode.ICNAFP;
|
59
|
|
60
|
/**
|
61
|
* should be configurable per UI
|
62
|
*/
|
63
|
public static final AnnotationType[] EDITABLE_ANOTATION_TYPES = new AnnotationType[]{AnnotationType.EDITORIAL()};
|
64
|
|
65
|
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.";
|
66
|
|
67
|
public static final List<Role> COLLECTION_EDITOR_SUB_COLLECTION_VISIBILITY_RESTRICTION = Arrays.asList(Role.ROLE_ADMIN, RolesAndPermissions.ROLE_CURATION);
|
68
|
}
|