Merge branch 'release/5.8.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / LocalOrDefaultEnum.java
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/LocalOrDefaultEnum.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/LocalOrDefaultEnum.java
new file mode 100755 (executable)
index 0000000..5928629
--- /dev/null
@@ -0,0 +1,42 @@
+/**
+* Copyright (C) 2019 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
+package eu.etaxonomy.taxeditor.preference;
+
+import eu.etaxonomy.cdm.model.metadata.IKeyLabel;
+
+/**
+ * @author k.luther
+ * @since 05.06.2019
+ *
+ */
+public enum LocalOrDefaultEnum implements IKeyLabel{
+    Local("Local", "Use local settings"),
+    Database("NotAllowOverride", "Do not allow override"),
+    Default("Default", "Use default settings"),
+    AllowOverride("AllowOverride", "Allow override");
+
+
+    String label;
+    String key;
+
+    private LocalOrDefaultEnum(String key, String label){
+        this.label = label;
+        this.key = key;
+    }
+
+    @Override
+    public String getLabel(){
+        return label;
+    }
+
+    @Override
+    public String getKey(){
+        return key;
+    }
+}