KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > organization > impl > UserImpl


1 package org.exoplatform.services.organization.impl;
2
3 import java.util.Date JavaDoc;
4
5 import org.exoplatform.services.organization.User;
6 /**
7  * @hibernate.class table="EXO_USER"
8  */

9 public class UserImpl implements User {
10
11   private String JavaDoc id = null;
12   private String JavaDoc userName = null;
13   private String JavaDoc password = null;
14   private String JavaDoc firstName = null;
15   private String JavaDoc lastName = null;
16   private String JavaDoc email = null;
17   private Date JavaDoc createdDate ;
18   private Date JavaDoc lastLoginTime ;
19   
20   public UserImpl() {
21   }
22
23   /**
24    * @hibernate.id generator-class="assigned" unsaved-value="null"
25    ***/

26   public String JavaDoc getId() { return id; }
27   public void setId(String JavaDoc id) { this.id = id; }
28
29   /**
30    * @hibernate.property
31    **/

32   public String JavaDoc getUserName() { return userName; }
33   public void setUserName(String JavaDoc name) { this.userName = name; }
34
35   /**
36    * @hibernate.property
37    **/

38   public String JavaDoc getPassword() { return password; }
39   public void setPassword(String JavaDoc password) { this.password = password; }
40   
41   /**
42    * @hibernate.property
43    **/

44   public String JavaDoc getFirstName() { return firstName; }
45   public void setFirstName(String JavaDoc firstName) { this.firstName = firstName; }
46   
47   /**
48    * @hibernate.property
49    **/

50   public String JavaDoc getLastName() { return lastName; }
51   public void setLastName(String JavaDoc lastName) { this.lastName = lastName; }
52   
53   /**
54    * @hibernate.property
55    **/

56   public String JavaDoc getEmail() { return email; }
57   public void setEmail(String JavaDoc email) { this.email = email; }
58   
59   // wrapper method
60
public String JavaDoc getFullName() {
61     return getFirstName() + " " + getLastName();
62   }
63   
64   public void setFullName(String JavaDoc fullName) {
65     
66   }
67
68   /**
69    * @hibernate.property
70    **/

71   public Date JavaDoc getCreatedDate() { return createdDate ; }
72   public void setCreatedDate(Date JavaDoc t) { createdDate = t ; }
73  
74   /**
75    * @hibernate.property
76    **/

77   public Date JavaDoc getLastLoginTime() { return lastLoginTime ; }
78   public void setLastLoginTime(Date JavaDoc t) { lastLoginTime = t ; }
79
80   // toString
81
public String JavaDoc toString() {
82     return "User[" + id + "|" + userName + "]";
83   }
84 }
Popular Tags