View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }