001 /**
002 * Copyright 2004-2012 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.hr.time.person;
017
018 import java.io.Serializable;
019
020 public class TKPerson implements Comparable<TKPerson>,Serializable {
021
022 /**
023 *
024 */
025 private static final long serialVersionUID = 1L;
026 private String principalId;
027 private String firstName;
028 private String lastName;
029 private String principalName;
030
031 public String getPrincipalId() {
032 return principalId;
033 }
034 public void setPrincipalId(String principalId) {
035 this.principalId = principalId;
036 }
037 public String getPrincipalName() {
038 return principalName;
039 }
040
041 public void setPrincipalName(String principalName) {
042 this.principalName = principalName;
043 }
044
045 public String getFirstName() {
046 return firstName;
047 }
048 public void setFirstName(String firstName) {
049 this.firstName = firstName;
050 }
051 public String getLastName() {
052 return lastName;
053 }
054 public void setLastName(String lastName) {
055 this.lastName = lastName;
056 }
057 public int compareTo(TKPerson person) {
058 return principalName.compareToIgnoreCase(person.getPrincipalName());
059 }
060 }