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.SpecimenTypeDesignationStatus;
|
17
|
import eu.etaxonomy.cdm.model.occurrence.DerivationEventType;
|
18
|
/**
|
19
|
* @author a.kohlbecker
|
20
|
* @since Jun 23, 2017
|
21
|
*
|
22
|
*/
|
23
|
public class RegistrationTermLists {
|
24
|
|
25
|
public static final List<DerivationEventType> DERIVATION_EVENT_TYPE = Arrays.asList(new DerivationEventType[]{
|
26
|
DerivationEventType.GATHERING_IN_SITU(),
|
27
|
DerivationEventTypes.UNPUBLISHED_IMAGE(),
|
28
|
DerivationEventTypes.PUBLISHED_IMAGE(),
|
29
|
DerivationEventTypes.CULTURE_METABOLIC_INACTIVE()
|
30
|
});
|
31
|
|
32
|
public static final List<SpecimenTypeDesignationStatus> SPECIMEN_TYPE_DESIGNATION_STATUS = Arrays.asList(new SpecimenTypeDesignationStatus[]{
|
33
|
SpecimenTypeDesignationStatus.SYNTYPE(),
|
34
|
SpecimenTypeDesignationStatus.TYPE(),
|
35
|
SpecimenTypeDesignationStatus.HOLOTYPE(),
|
36
|
SpecimenTypeDesignationStatus.LECTOTYPE(),
|
37
|
SpecimenTypeDesignationStatus.SECOND_STEP_LECTOTYPE(),
|
38
|
SpecimenTypeDesignationStatus.NEOTYPE(),
|
39
|
SpecimenTypeDesignationStatus.EPITYPE()
|
40
|
// TODO add Typus consservandus
|
41
|
// TODO add Typ. cons. prop.
|
42
|
});
|
43
|
|
44
|
|
45
|
|
46
|
public static List<UUID> DERIVATION_EVENT_TYPE_UUIDS(){
|
47
|
List<UUID> uuids = new ArrayList<>();
|
48
|
DERIVATION_EVENT_TYPE.forEach(t -> uuids.add(t.getUuid()));
|
49
|
return uuids;
|
50
|
}
|
51
|
|
52
|
public static List<UUID> SPECIMEN_TYPE_DESIGNATION_STATUS_UUIDS(){
|
53
|
List<UUID> uuids = new ArrayList<>();
|
54
|
SPECIMEN_TYPE_DESIGNATION_STATUS.forEach(t -> uuids.add(t.getUuid()));
|
55
|
return uuids;
|
56
|
}
|
57
|
|
58
|
|
59
|
}
|