]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - src/org/mxchange/addressbook/model/addressbook/status/AddressbokStatus.java
Continued:
[jfinancials-lib.git] / src / org / mxchange / addressbook / model / addressbook / status / AddressbokStatus.java
diff --git a/src/org/mxchange/addressbook/model/addressbook/status/AddressbokStatus.java b/src/org/mxchange/addressbook/model/addressbook/status/AddressbokStatus.java
new file mode 100644 (file)
index 0000000..14be56f
--- /dev/null
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.addressbook.model.addressbook.status;
+
+import java.io.Serializable;
+
+/**
+ * An enum for the addressbook status
+ * <p>
+ * @author Roland Haeder
+ */
+public enum AddressbokStatus implements Serializable {
+
+       /**
+        * When the addressbook is unlocked
+        */
+       UNLOCKED("ADDRESSBOOK_STATUS_UNLOCKED"), //NOI18N
+
+       /**
+        * When the addressbook is locked by administrator
+        */
+       LOCKED("ADDRESSBOOK_STATUS_LOCKED"); //NOI18N
+
+       /**
+        * Message key
+        */
+       private final String messageKey;
+
+       /**
+        * Constructor
+        * <p>
+        * @param messageKey Message key for this enum
+        */
+       private AddressbokStatus (final String messageKey) {
+               this.messageKey = messageKey;
+       }
+
+       /**
+        * Getter for message key
+        * <p>
+        * @return Message key
+        */
+       public String getMessageKey () {
+               return this.messageKey;
+       }
+}