comparison src/main/java/de/mpiwg/gazetteer/dataverse/bo/VDCUser.java @ 0:3e62083dbcbf

First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 23 Apr 2015 15:46:01 +0200
parents
children ce2e3f2814c0
comparison
equal deleted inserted replaced
-1:000000000000 0:3e62083dbcbf
1 package de.mpiwg.gazetteer.dataverse.bo;
2
3 import org.json.JSONObject;
4
5 import de.mpiwg.gazetteer.utils.JSONUtils;
6
7 /**
8 * See: edu.harvard.iq.dvn.core.admin.VDCUser
9 * @author jurzua
10 *
11 */
12 public class VDCUser {
13
14 private String userName;
15 private String email;
16 private String firstName;
17 private String lastName;
18 private String institution;
19 private Long id;
20 private Long version;
21 private Long position;
22
23 private String password;
24 public VDCUser(Long id, String userName, String password){
25 this.id = id;
26 this.userName = userName;
27 this.password = password;
28 }
29
30 public VDCUser(JSONObject json){
31
32 this.email = JSONUtils.getString(json, "email");
33 this.firstName = JSONUtils.getString(json, "firstName");
34 this.userName = JSONUtils.getString(json, "userName");
35 this.lastName = JSONUtils.getString(json, "lastName");
36 this.institution = JSONUtils.getString(json, "institution");
37
38 this.id = JSONUtils.getLong(json, "id");
39 this.position = JSONUtils.getLong(json, "position");
40 this.version = JSONUtils.getLong(json, "version");
41 }
42
43 public String getUserName() {
44 return userName;
45 }
46
47 public void setUserName(String userName) {
48 this.userName = userName;
49 }
50
51 public String getEmail() {
52 return email;
53 }
54
55 public void setEmail(String email) {
56 this.email = email;
57 }
58
59 public String getFirstName() {
60 return firstName;
61 }
62
63 public void setFirstName(String firstName) {
64 this.firstName = firstName;
65 }
66
67 public String getLastName() {
68 return lastName;
69 }
70
71 public void setLastName(String lastName) {
72 this.lastName = lastName;
73 }
74
75 public String getInstitution() {
76 return institution;
77 }
78
79 public void setInstitution(String institution) {
80 this.institution = institution;
81 }
82
83 public Long getId() {
84 return id;
85 }
86
87 public void setId(Long id) {
88 this.id = id;
89 }
90
91 public Long getVersion() {
92 return version;
93 }
94
95 public void setVersion(Long version) {
96 this.version = version;
97 }
98
99 public Long getPosition() {
100 return position;
101 }
102
103 public void setPosition(Long position) {
104 this.position = position;
105 }
106
107 public String getPassword() {
108 return password;
109 }
110
111 public void setPassword(String password) {
112 this.password = password;
113 }
114
115
116 }
117