X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Faddressbook%2Fmodel%2Faddressbook%2Fstatus%2FAddressbokStatus.java;fp=src%2Forg%2Fmxchange%2Faddressbook%2Fmodel%2Faddressbook%2Fstatus%2FAddressbokStatus.java;h=14be56f83c5db68d1984dfb8cb46d2a5178e8937;hb=68b81ac2a90af4ca3733bc6148eca4c62018fc37;hp=0000000000000000000000000000000000000000;hpb=3708c5248bf51d1a84043b4094b9b34cb79af004;p=jfinancials-lib.git 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 index 0000000..14be56f --- /dev/null +++ b/src/org/mxchange/addressbook/model/addressbook/status/AddressbokStatus.java @@ -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 . + */ +package org.mxchange.addressbook.model.addressbook.status; + +import java.io.Serializable; + +/** + * An enum for the addressbook status + *

+ * @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 + *

+ * @param messageKey Message key for this enum + */ + private AddressbokStatus (final String messageKey) { + this.messageKey = messageKey; + } + + /** + * Getter for message key + *

+ * @return Message key + */ + public String getMessageKey () { + return this.messageKey; + } +}