]> git.mxchange.org Git - jcustomer-core.git/blob - src/org/mxchange/jshopcore/model/customer/status/CustomerAccountStatus.java
added a new enum for account status + updated jars
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / customer / status / CustomerAccountStatus.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.jshopcore.model.customer.status;
18
19 import java.io.Serializable;
20
21 /**
22  * An enum for customer's account status like confirmed, locked, etc.
23  *
24  * @author Roland Haeder
25  */
26 public enum CustomerAccountStatus implements Serializable {
27         /**
28          * Unconfirmed (default)
29          */
30         UNCONFIRMED("CUSTOMER_ACCOUNT_STATUS_UNCONFIRMED"), //NOI18N
31
32         /**
33          * Confirmed (email address validated)
34          */
35         CONFIRMED("CUSTOMER_ACCOUNT_STATUS_CONFIRMED"), //NOI18N
36
37         /**
38          * Locked (maybe violeted T&C)
39          */
40         LOCKED("CUSTOMER_ACCOUNT_STATUS_LOCKED"); //NOI18N
41
42         /**
43          * Message key
44          */
45         private final String messageKey;
46
47         /**
48          * Constructor with i18n translation key
49          *
50          * @param messageKey Message key (i18n)
51          */
52         private CustomerAccountStatus (final String messageKey) {
53                 // Set it here
54                 this.messageKey = messageKey;
55         }
56
57         /**
58          * Output value (for messages)
59          *
60          * @return the messageKey
61          */
62         public String getMessageKey () {
63                 return this.messageKey;
64         }
65 }