2 * Copyright (C) 2016 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.jusercore.model.user.status;
19 import java.io.Serializable;
22 * An enumeration for user's account status like confirmed, locked, etc.
24 * @author Roland Haeder<roland@mxchange.org>
26 public enum UserAccountStatus implements Serializable {
29 * Unconfirmed (default)
31 UNCONFIRMED("USER_ACCOUNT_STATUS_UNCONFIRMED", "user_status_unconfirmed"), //NOI18N
34 * Confirmed (email address validated)
36 CONFIRMED("USER_ACCOUNT_STATUS_CONFIRMED", "user_status_confirmed"), //NOI18N
39 * Locked (maybe violated T&C)
41 LOCKED("USER_ACCOUNT_STATUS_LOCKED", "user_status_locked"); //NOI18N
46 private final String messageKey;
51 private final String styleClass;
54 * Constructor with i18n translation key
56 * @param messageKey Message key (i18n)
57 * @param styyleClass CSS style class
59 private UserAccountStatus (final String messageKey, final String styleClass) {
61 this.messageKey = messageKey;
62 this.styleClass = styleClass;
66 * Getter for message key
68 * @return Message key (i18n)
70 public String getMessageKey () {
71 return this.messageKey;
75 * Getter for CSS style class
77 * @return CSS style class
79 public String getStyleClass () {
80 return this.styleClass;