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.UUID;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.occurrence.DerivationEventType;
|
14
|
|
15
|
/**
|
16
|
* @author a.kohlbecker
|
17
|
* @since Jun 20, 2017
|
18
|
*
|
19
|
*/
|
20
|
public class DerivationEventTypes {
|
21
|
|
22
|
private static final UUID UUID_PUBLISHED_IMAGE = UUID.fromString("b8cba359-4202-4741-8ed8-4f17ae94b3e3");
|
23
|
private static final UUID UUID_UNPUBLISHED_IMAGE = UUID.fromString("6cd5681f-0918-4ed6-89a8-bda1480dc890");
|
24
|
private static final UUID UUID_CULTURE_METABOLIC_INACTIVE = UUID.fromString("eaf1c853-ba8d-4c40-aa0a-56beac96b0d2");
|
25
|
|
26
|
private static DerivationEventType publishedImage = null;
|
27
|
private static DerivationEventType unpublishedImage = null;
|
28
|
private static DerivationEventType cultureMetabolicInactive = null;
|
29
|
|
30
|
public static DerivationEventType PUBLISHED_IMAGE() {
|
31
|
if(publishedImage == null){
|
32
|
publishedImage = DerivationEventType.NewInstance("Published image", "Published image", "");
|
33
|
publishedImage.setUuid(UUID_PUBLISHED_IMAGE);
|
34
|
}
|
35
|
return publishedImage;
|
36
|
}
|
37
|
|
38
|
public static DerivationEventType UNPUBLISHED_IMAGE() {
|
39
|
if(unpublishedImage == null){
|
40
|
unpublishedImage = DerivationEventType.NewInstance("Unpublished image", "Unpublished image", "");
|
41
|
unpublishedImage.setUuid(UUID_UNPUBLISHED_IMAGE);
|
42
|
}
|
43
|
return unpublishedImage;
|
44
|
}
|
45
|
|
46
|
public static DerivationEventType CULTURE_METABOLIC_INACTIVE() {
|
47
|
if(cultureMetabolicInactive == null){
|
48
|
cultureMetabolicInactive = DerivationEventType.NewInstance("Metabolic inactive cuture", "Metabolic inactive cuture", "");
|
49
|
cultureMetabolicInactive.setUuid(UUID_CULTURE_METABOLIC_INACTIVE);
|
50
|
}
|
51
|
return cultureMetabolicInactive;
|
52
|
}
|
53
|
|
54
|
}
|