1
|
/**
|
2
|
* Copyright (C) 2017 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.model.registration;
|
10
|
|
11
|
import java.util.ArrayList;
|
12
|
import java.util.Arrays;
|
13
|
import java.util.List;
|
14
|
import java.util.UUID;
|
15
|
|
16
|
import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus;
|
17
|
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
|
18
|
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
|
19
|
import eu.etaxonomy.cdm.model.term.DefinedTerm;
|
20
|
/**
|
21
|
* @author a.kohlbecker
|
22
|
* @since Jun 23, 2017
|
23
|
*
|
24
|
*/
|
25
|
public class RegistrationTermLists {
|
26
|
|
27
|
public static final List<DefinedTerm> KIND_OF_UNIT_TERMS = Arrays.asList(new DefinedTerm[]{
|
28
|
KindOfUnitTerms.SPECIMEN(),
|
29
|
KindOfUnitTerms.UNPUBLISHED_IMAGE(),
|
30
|
KindOfUnitTerms.PUBLISHED_IMAGE(),
|
31
|
KindOfUnitTerms.CULTURE_METABOLIC_INACTIVE()
|
32
|
});
|
33
|
|
34
|
public static final List<SpecimenTypeDesignationStatus> SPECIMEN_TYPE_DESIGNATION_STATUS = Arrays.asList(new SpecimenTypeDesignationStatus[]{
|
35
|
SpecimenTypeDesignationStatus.EPITYPE(),
|
36
|
SpecimenTypeDesignationStatus.HOLOTYPE(),
|
37
|
SpecimenTypeDesignationStatus.ISOEPITYPE(),
|
38
|
SpecimenTypeDesignationStatus.ISOLECTOTYPE(),
|
39
|
SpecimenTypeDesignationStatus.ISONEOTYPE(),
|
40
|
SpecimenTypeDesignationStatus.ISOPARATYPE(),
|
41
|
SpecimenTypeDesignationStatus.ISOSYNTYPE(),
|
42
|
SpecimenTypeDesignationStatus.ISOTYPE(),
|
43
|
SpecimenTypeDesignationStatus.LECTOTYPE(),
|
44
|
SpecimenTypeDesignationStatus.NEOTYPE(),
|
45
|
SpecimenTypeDesignationStatus.PARALECTOTYPE(),
|
46
|
SpecimenTypeDesignationStatus.PARANEOTYPE(),
|
47
|
SpecimenTypeDesignationStatus.PARATYPE(),
|
48
|
SpecimenTypeDesignationStatus.SECOND_STEP_LECTOTYPE(),
|
49
|
SpecimenTypeDesignationStatus.SECOND_STEP_NEOTYPE(),
|
50
|
SpecimenTypeDesignationStatus.SYNTYPE(),
|
51
|
SpecimenTypeDesignationStatus.TYPE(), // Unknown type category
|
52
|
SpecimenTypeDesignationStatus.UNSPECIFIC(),
|
53
|
|
54
|
// TODO add Typus consservandus
|
55
|
// TODO add Typ. cons. prop.
|
56
|
});
|
57
|
|
58
|
public static final List<NameTypeDesignationStatus> NAME_TYPE_DESIGNATION_STATUS = Arrays.asList(new NameTypeDesignationStatus[]{
|
59
|
NameTypeDesignationStatus.LECTOTYPE()
|
60
|
// TODO add more see https://dev.e-taxonomy.eu/redmine/issues/6193
|
61
|
});
|
62
|
|
63
|
public static final List<NomenclaturalStatusType> NOMENCLATURAL_STATUS_TYPES = Arrays.asList(new NomenclaturalStatusType[]{
|
64
|
NomenclaturalStatusType.CONSERVED(),
|
65
|
NomenclaturalStatusType.CONSERVED_PROP(),
|
66
|
NomenclaturalStatusType.ILLEGITIMATE(),
|
67
|
NomenclaturalStatusType.INVALID(),
|
68
|
NomenclaturalStatusType.REJECTED(),
|
69
|
NomenclaturalStatusType.REJECTED_PROP(),
|
70
|
NomenclaturalStatusType.UTIQUE_REJECTED(),
|
71
|
NomenclaturalStatusType.UTIQUE_REJECTED_PROP(),
|
72
|
NomenclaturalStatusType.ORTHOGRAPHY_CONSERVED(),
|
73
|
NomenclaturalStatusType.ORTHOGRAPHY_CONSERVED_PROP(),
|
74
|
NomenclaturalStatusType.ORTHOGRAPHY_REJECTED()
|
75
|
});
|
76
|
|
77
|
|
78
|
public static List<UUID> KIND_OF_UNIT_TERM_UUIDS(){
|
79
|
List<UUID> uuids = new ArrayList<>();
|
80
|
KIND_OF_UNIT_TERMS.forEach(t -> uuids.add(t.getUuid()));
|
81
|
return uuids;
|
82
|
}
|
83
|
|
84
|
public static List<UUID> SPECIMEN_TYPE_DESIGNATION_STATUS_UUIDS(){
|
85
|
List<UUID> uuids = new ArrayList<>();
|
86
|
SPECIMEN_TYPE_DESIGNATION_STATUS.forEach(t -> uuids.add(t.getUuid()));
|
87
|
return uuids;
|
88
|
}
|
89
|
public static List<UUID> NAME_TYPE_DESIGNATION_STATUS_UUIDS(){
|
90
|
List<UUID> uuids = new ArrayList<>();
|
91
|
NAME_TYPE_DESIGNATION_STATUS.forEach(t -> uuids.add(t.getUuid()));
|
92
|
return uuids;
|
93
|
}
|
94
|
public static List<UUID> NOMENCLATURAL_STATUS_TYPE_UUIDS(){
|
95
|
List<UUID> uuids = new ArrayList<>();
|
96
|
NOMENCLATURAL_STATUS_TYPES.forEach(t -> uuids.add(t.getUuid()));
|
97
|
return uuids;
|
98
|
}
|
99
|
|
100
|
|
101
|
}
|