View Javadoc

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