1 19 20 package za.org.coefficient.authentication; 21 22 import java.util.Date ; 23 import java.util.Locale ; 24 import java.util.TimeZone ; 25 26 30 public class CoefficientUser implements java.io.Serializable { 31 33 private Date createDate; 34 private Locale language; 35 private Long id; 36 private Role systemRole; 37 private String email; 38 private String fullName; 39 private String password; 40 private String userName; 41 private TimeZone timeZone; 42 private boolean active; 43 private boolean hideInformation; 44 private long confId; 45 private long version; 46 private String aliasEmail; 48 49 50 52 public CoefficientUser() { 53 createDate = new Date (System.currentTimeMillis()); 54 hideInformation = false; 55 } 56 57 59 64 public void setActive(boolean active) { 65 this.active = active; 66 } 67 68 76 public boolean getActive() { 77 return this.active; 78 } 79 80 85 public void setConfirmationId(long confirmationId) { 86 this.confId = confirmationId; 87 } 88 89 96 public long getConfirmationId() { 97 return this.confId; 98 } 99 100 105 public void setCreateDate(Date createDate) { 106 this.createDate = createDate; 107 } 108 109 116 public Date getCreateDate() { 117 return this.createDate; 118 } 119 120 125 public void setEmail(String argEmail) { 126 this.email = argEmail; 127 } 128 129 137 public String getEmail() { 138 return this.email; 139 } 140 141 146 public void setFullName(String argFullName) { 147 this.fullName = argFullName; 148 } 149 150 158 public String getFullName() { 159 return this.fullName; 160 } 161 162 167 public void setHideInformation(boolean hideInformation) { 168 this.hideInformation = hideInformation; 169 } 170 171 179 public boolean getHideInformation() { 180 return this.hideInformation; 181 } 182 183 public void setId(Long id) { 184 this.id = id; 185 } 186 187 191 public Long getId() { 192 return id; 193 } 194 195 200 public void setLanguage(Locale argLanguage) { 201 this.language = argLanguage; 202 } 203 204 213 public Locale getLanguage() { 214 return this.language; 215 } 216 217 222 public void setPassword(String argPassword) { 223 this.password = argPassword; 224 } 225 226 234 public String getPassword() { 235 return this.password; 236 } 237 238 243 public void setSystemRole(Role systemRole) { 244 this.systemRole = systemRole; 245 } 246 247 255 public Role getSystemRole() { 256 return this.systemRole; 257 } 258 259 264 public void setTimeZone(TimeZone argTimeZone) { 265 this.timeZone = argTimeZone; 266 } 267 268 277 public TimeZone getTimeZone() { 278 return this.timeZone; 279 } 280 281 286 public void setUserName(String argUserName) { 287 this.userName = argUserName; 288 } 289 290 299 public String getUserName() { 300 return this.userName; 301 } 302 303 308 public void setVersion(long version) { 309 this.version = version; 310 } 311 312 320 public long getVersion() { 321 return this.version; 322 } 323 324 public boolean equals(Object other) { 325 CoefficientUser o = (CoefficientUser) other; 326 327 return (this != null) && (o != null) 328 && (((userName == null) && (o.userName == null)) 329 || userName.equals(o.userName)) 330 && (((password == null) && (o.password == null)) 331 || password.equals(o.password)); 332 } 333 334 public String toString() { 335 return getFullName(); 336 } 337 338 346 public String getAliasEmail() { 347 return aliasEmail; 348 } 349 350 351 356 public void setAliasEmail(String aliasEmail) { 357 this.aliasEmail = aliasEmail; 358 } 359 360 } 361 | Popular Tags |