1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.mobility.people.entity;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.List;
21 import javax.xml.bind.annotation.XmlRootElement;
22
23 @XmlRootElement(name="person")
24 public class PersonImpl implements Serializable, Person {
25
26 private static final long serialVersionUID = -2125754188712894101L;
27
28 private String firstName;
29 private String lastName;
30 private String displayName;
31 private String userName;
32
33 private List<String> locations;
34 private List<String> affiliations;
35 private List<String> departments;
36
37 private String email;
38 private String phone;
39 private String address;
40
41 public PersonImpl() {
42 locations = new ArrayList<String>();
43 affiliations = new ArrayList<String>();
44 departments = new ArrayList<String>();
45 }
46
47
48
49
50 @Override
51 public String getHashedUserName() {
52 return Integer.toString(Math.abs(userName.hashCode()));
53 }
54
55
56
57 @Override
58 public String getFirstName() {
59 return firstName;
60 }
61
62
63
64 @Override
65 public void setFirstName(String firstName) {
66 this.firstName = firstName;
67 }
68
69
70
71 @Override
72 public String getLastName() {
73 return lastName;
74 }
75
76
77
78 @Override
79 public void setLastName(String lastName) {
80 this.lastName = lastName;
81 }
82
83
84
85 @Override
86 public String getUserName() {
87 return userName;
88 }
89
90
91
92 @Override
93 public void setUserName(String userName) {
94 this.userName = userName;
95 }
96
97
98
99 @Override
100 public String getDisplayName() {
101 return displayName;
102 }
103
104
105
106 @Override
107 public void setDisplayName(String displayName) {
108 this.displayName = displayName;
109 }
110
111
112
113 @Override
114 public String getEmail() {
115 return email;
116 }
117
118
119
120 @Override
121 public void setEmail(String email) {
122 this.email = email;
123 }
124
125
126
127 @Override
128 public String getPhone() {
129 return phone;
130 }
131
132
133
134 @Override
135 public void setPhone(String phone) {
136 this.phone = phone;
137 }
138
139
140
141 @Override
142 public String getAddress() {
143 return address;
144 }
145
146
147
148 @Override
149 public void setAddress(String address) {
150 this.address = address;
151 }
152
153
154
155 @Override
156 public List<String> getLocations() {
157 return locations;
158 }
159
160
161
162 @Override
163 public void setLocations(List<String> locations) {
164 this.locations = locations;
165 }
166
167
168
169 @Override
170 public List<String> getAffiliations() {
171 return affiliations;
172 }
173
174
175
176 @Override
177 public void setAffiliations(List<String> affiliations) {
178 this.affiliations = affiliations;
179 }
180
181
182
183 @Override
184 public List<String> getDepartments() {
185 return departments;
186 }
187
188
189
190 @Override
191 public void setDepartments(List<String> departments) {
192 this.departments = departments;
193 }
194 }