1
|
/**
|
2
|
* Copyright (C) 2020 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.model.metadata;
|
10
|
|
11
|
/**
|
12
|
* @author k.luther
|
13
|
* @since Dec 1, 2020
|
14
|
*/
|
15
|
public enum SecReferenceHandlingEnum implements IKeyLabel {
|
16
|
|
17
|
AlwaysDelete("AlwaysDelete", "Always delete"),
|
18
|
WarningSelect("WarningSelect", "Warning and select"),
|
19
|
KeepWhenSame("KeepWhenSame", "Keep if syn sec and new parent sec are the same, warn otherwise"),
|
20
|
KeepAlways("KeepAlways", "Keep always"),
|
21
|
UseNewParentSec("UseNewParentSec", "Always use new parent sec");
|
22
|
// UseOldParentSec("UseOldParentSec", "Always use old parent sec");
|
23
|
|
24
|
private String label;
|
25
|
private String key;
|
26
|
|
27
|
private SecReferenceHandlingEnum(String key, String label){
|
28
|
this.label = label;
|
29
|
this.key = key;
|
30
|
}
|
31
|
|
32
|
@Override
|
33
|
public String getLabel() {
|
34
|
return label;
|
35
|
}
|
36
|
|
37
|
@Override
|
38
|
public String getKey() {
|
39
|
return key;
|
40
|
}
|
41
|
}
|