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.lm.request.approval.web;
17  
18  public class LeaveRequestApprovalRow implements Comparable<LeaveRequestApprovalRow> {
19  
20  	private String leaveRequestDocId;	
21  	private String requestedDate;
22  	private String requestedHours;
23  	private String description;
24  	private String leaveCode;
25  	private String submittedTime;
26  
27  	@Override
28  	public int compareTo(LeaveRequestApprovalRow row) {
29  		  return requestedDate.compareToIgnoreCase(row.getRequestedDate());
30  	}
31  	
32  	public String getRequestedDate() {
33  		return requestedDate;
34  	}
35  	
36  	public void setRequestedDate(String requestedDate) {
37  		this.requestedDate = requestedDate;
38  	}
39  	
40  	public String getDescription() {
41  		return description;
42  	}
43  	
44  	public void setDescription(String description) {
45  		this.description = description;
46  	}
47  	
48  	public String getLeaveCode() {
49  		return leaveCode;
50  	}
51  	
52  	public void setLeaveCode(String leaveCode) {
53  		this.leaveCode = leaveCode;
54  	}
55  	
56  	public String getSubmittedTime() {
57  		return submittedTime;
58  	}
59  	
60  	public void setSubmittedTime(String submittedTime) {
61  		this.submittedTime = submittedTime;
62  	}
63  	
64  	public String getLeaveRequestDocId() {
65  		return leaveRequestDocId;
66  	}
67  
68  	public void setLeaveRequestDocId(String leaveRequestDocId) {
69  		this.leaveRequestDocId = leaveRequestDocId;
70  	}
71  	
72  	public String getRequestedHours() {
73  		return requestedHours;
74  	}
75  
76  	public void setRequestedHours(String requestedHours) {
77  		this.requestedHours = requestedHours;
78  	}
79  
80  }