]> git.mxchange.org Git - juser-activity-core.git/blob - src/org/mxchange/jusercore/model/user/profilemodes/ProfileMode.java
Added ProfileMode instead of boolean public/private flag. This is way more flexible...
[juser-activity-core.git] / src / org / mxchange / jusercore / model / user / profilemodes / ProfileMode.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.jusercore.model.user.profilemodes;
18
19 import java.io.Serializable;
20
21 /**
22  * User profile modes
23  * <p>
24  * @author Roland Haeder
25  */
26 public enum ProfileMode implements Serializable {
27
28         /**
29          * Invisible to guests and members (not administrators)
30          */
31         INVISIBLE("USER_PROFILE_MODE_PRIVATE"),
32         /**
33          * Only visible to members (and administrators)
34          */
35         MEMBERS("USER_PROFILE_MODE_PRIVATE"),
36         /**
37          * Visible to all (public in Internet)
38          */
39         PUBLIC("USER_PROFILE_MODE_PRIVATE");
40
41         /**
42          * Message key (i18n)
43          */
44         private final String messageKey;
45
46         /**
47          * Constructor with message key
48          * <p>
49          * @param messageKey Message key
50          */
51         private ProfileMode (final String messageKey) {
52                 this.messageKey = messageKey;
53         }
54
55         /**
56          * Getter for message key (i18n)
57          * @return Message key
58          */
59         public String getMessageKey () {
60                 return this.messageKey;
61         }
62 }