1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.person;
17
18 import java.io.Serializable;
19
20 public class TKPerson implements Comparable<TKPerson>,Serializable {
21
22
23
24
25 private static final long serialVersionUID = 1L;
26 private String principalId;
27 private String firstName;
28 private String lastName;
29 private String principalName;
30
31 public String getPrincipalId() {
32 return principalId;
33 }
34 public void setPrincipalId(String principalId) {
35 this.principalId = principalId;
36 }
37 public String getPrincipalName() {
38 return principalName;
39 }
40
41 public void setPrincipalName(String principalName) {
42 this.principalName = principalName;
43 }
44
45 public String getFirstName() {
46 return firstName;
47 }
48 public void setFirstName(String firstName) {
49 this.firstName = firstName;
50 }
51 public String getLastName() {
52 return lastName;
53 }
54 public void setLastName(String lastName) {
55 this.lastName = lastName;
56 }
57 public int compareTo(TKPerson person) {
58 return principalName.compareToIgnoreCase(person.getPrincipalName());
59 }
60 }