2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jshopcore.model.customer.status;
19 import java.io.Serializable;
22 * An enum for customer's account status like confirmed, locked, etc.
24 * @author Roland Haeder
26 public enum CustomerAccountStatus implements Serializable {
28 * Unconfirmed (default)
30 UNCONFIRMED("CUSTOMER_ACCOUNT_STATUS_UNCONFIRMED"), //NOI18N
33 * Confirmed (email address validated)
35 CONFIRMED("CUSTOMER_ACCOUNT_STATUS_CONFIRMED"), //NOI18N
38 * Locked (maybe violeted T&C)
40 LOCKED("CUSTOMER_ACCOUNT_STATUS_LOCKED"); //NOI18N
45 private final String messageKey;
48 * Constructor with i18n translation key
50 * @param messageKey Message key (i18n)
52 private CustomerAccountStatus (final String messageKey) {
54 this.messageKey = messageKey;
58 * Output value (for messages)
60 * @return the messageKey
62 public String getMessageKey () {
63 return this.messageKey;