KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nemesis > forum > webapp > admin > bean > UserBean


1 package org.nemesis.forum.webapp.admin.bean;
2
3 import java.util.HashMap JavaDoc;
4 import java.util.Iterator JavaDoc;
5 import java.util.Map JavaDoc;
6
7 import org.nemesis.forum.config.ConfigLoader;
8
9 /**
10  * @author dlaurent
11  *
12  * 21 févr. 2003
13  * GroupBean.java
14  */

15 public class UserBean {
16         
17     int id ;
18     String JavaDoc userName ;//==login
19
String JavaDoc password ;
20     String JavaDoc passwordConfirm ;
21     String JavaDoc name ;
22     String JavaDoc email ;
23     boolean nameVisible;
24     boolean emailVisible;
25     boolean changePassword=false;
26     
27     int goupCount;
28     int groupAdminCount;
29     
30     Map JavaDoc properties=new HashMap JavaDoc();
31     
32     /**
33      *
34      */

35     public UserBean() {
36         //load extended properties
37
String JavaDoc temp=null;
38         for(Iterator JavaDoc it= ConfigLoader.getInstance().getConfig().getUserExtendedProperties().iterator();it.hasNext();){
39             properties.put((String JavaDoc)it.next(),"");
40         }
41         
42     }
43
44     public void setPropertie(String JavaDoc key, String JavaDoc value) {
45         properties.put(key, value);
46     }
47
48     public String JavaDoc getPropertie(String JavaDoc key) {
49         return (String JavaDoc)properties.get(key);
50     }
51     
52     
53
54     /**
55      * @return String
56      */

57     public String JavaDoc getEmail() {
58         return email;
59     }
60
61     /**
62      * @return boolean
63      */

64     public boolean isEmailVisible() {
65         return emailVisible;
66     }
67
68     /**
69      * @return int
70      */

71     public int getId() {
72         return id;
73     }
74
75     /**
76      * @return String
77      */

78     public String JavaDoc getName() {
79         return name;
80     }
81
82     /**
83      * @return boolean
84      */

85     public boolean isNameVisible() {
86         return nameVisible;
87     }
88
89     /**
90      * @return String
91      */

92     public String JavaDoc getPassword() {
93         return password;
94     }
95
96     /**
97      * @return String
98      */

99     public String JavaDoc getPasswordConfirm() {
100         return passwordConfirm;
101     }
102
103     /**
104      * @return String
105      */

106     public String JavaDoc getUserName() {
107         return userName;
108     }
109
110     /**
111      * Sets the email.
112      * @param email The email to set
113      */

114     public void setEmail(String JavaDoc email) {
115         this.email = email;
116     }
117
118     /**
119      * Sets the emailVisible.
120      * @param emailVisible The emailVisible to set
121      */

122     public void setEmailVisible(boolean emailVisible) {
123         this.emailVisible = emailVisible;
124     }
125
126     /**
127      * Sets the id.
128      * @param id The id to set
129      */

130     public void setId(int id) {
131         this.id = id;
132     }
133
134     /**
135      * Sets the name.
136      * @param name The name to set
137      */

138     public void setName(String JavaDoc name) {
139         this.name = name;
140     }
141
142     /**
143      * Sets the nameVisible.
144      * @param nameVisible The nameVisible to set
145      */

146     public void setNameVisible(boolean nameVisible) {
147         this.nameVisible = nameVisible;
148     }
149
150     /**
151      * Sets the password.
152      * @param password The password to set
153      */

154     public void setPassword(String JavaDoc password) {
155         this.password = password;
156     }
157
158     /**
159      * Sets the passwordConfirm.
160      * @param passwordConfirm The passwordConfirm to set
161      */

162     public void setPasswordConfirm(String JavaDoc passwordConfirm) {
163         this.passwordConfirm = passwordConfirm;
164     }
165
166     /**
167      * Sets the userName.
168      * @param userName The userName to set
169      */

170     public void setUserName(String JavaDoc userName) {
171         this.userName = userName;
172     }
173
174
175
176     /**
177      * @return Map
178      */

179     public Map JavaDoc getProperties() {
180         return properties;
181     }
182
183     /**
184      * Sets the properties.
185      * @param properties The properties to set
186      */

187     public void setProperties(Map JavaDoc properties) {
188         this.properties = properties;
189     }
190
191     /**
192      * @return boolean
193      */

194     public boolean isChangePassword() {
195         return changePassword;
196     }
197
198     /**
199      * Sets the changePassword.
200      * @param changePassword The changePassword to set
201      */

202     public void setChangePassword(boolean changePassword) {
203         this.changePassword = changePassword;
204     }
205
206     /**
207      * @return int
208      */

209     public int getGoupCount() {
210         return goupCount;
211     }
212
213     /**
214      * @return int
215      */

216     public int getGroupAdminCount() {
217         return groupAdminCount;
218     }
219
220     /**
221      * Sets the goupCount.
222      * @param goupCount The goupCount to set
223      */

224     public void setGoupCount(int goupCount) {
225         this.goupCount = goupCount;
226     }
227
228     /**
229      * Sets the groupAdminCount.
230      * @param groupAdminCount The groupAdminCount to set
231      */

232     public void setGroupAdminCount(int groupAdminCount) {
233         this.groupAdminCount = groupAdminCount;
234     }
235
236 }
237
Popular Tags