]> git.mxchange.org Git - juser-login-core.git/blob - src/org/mxchange/jusercore/model/email_address/status/EmailChangeStatus.java
Continued a bit:
[juser-login-core.git] / src / org / mxchange / jusercore / model / email_address / status / EmailChangeStatus.java
1 /*
2  * Copyright (C) 2016, 2017 Roland Häder
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.jusercore.model.email_address.status;
18
19 import java.io.Serializable;
20
21 /**
22  * An enumeration for email changing
23  * <p>
24  * @author Roland Häder<roland@mxchange.org>
25  */
26 public enum EmailChangeStatus implements Serializable {
27
28         /**
29          * Newly added email address (default)
30          */
31         NEW("EMAIL_CHANGE_STATUS_NEW"), //NOI18N
32
33         /**
34          * User changed to this address
35          */
36         CHANGED("EMAIL_CHANGE_STATUS_CHANGED"), //NOI18N
37
38         /**
39          * Has withdrawn the action
40          */
41         WITHDRAWN("EMAIL_CHANGE_STATUS_WITHDRAWN"), //NOI18N
42
43         /**
44          * User has "deleted" the entry. This is not done to keep a history of email changes.
45          */
46         DELETED("EMAIL_CHANGE_STATUS_DELETED"); //NOI18N
47
48         /**
49          * Message key
50          */
51         private final String messageKey;
52
53         /**
54          * Constructor with i18n translation key
55          * <p>
56          * @param messageKey Message key (i18n)
57          */
58         private EmailChangeStatus (final String messageKey) {
59                 // Set it here
60                 this.messageKey = messageKey;
61         }
62
63         /**
64          * Output value (for messages)
65          * <p>
66          * @return the messageKey
67          */
68         public String getMessageKey () {
69                 return this.messageKey;
70         }
71
72 }