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