001    /**
002     * Copyright 2004-2013 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.lm.request.approval.web;
017    
018    public class LeaveRequestApprovalRow implements Comparable<LeaveRequestApprovalRow> {
019    
020            private String leaveRequestDocId;       
021            private String requestedDate;
022            private String requestedHours;
023            private String description;
024            private String leaveCode;
025            private String submittedTime;
026    
027            @Override
028            public int compareTo(LeaveRequestApprovalRow row) {
029                      return requestedDate.compareToIgnoreCase(row.getRequestedDate());
030            }
031            
032            public String getRequestedDate() {
033                    return requestedDate;
034            }
035            
036            public void setRequestedDate(String requestedDate) {
037                    this.requestedDate = requestedDate;
038            }
039            
040            public String getDescription() {
041                    return description;
042            }
043            
044            public void setDescription(String description) {
045                    this.description = description;
046            }
047            
048            public String getLeaveCode() {
049                    return leaveCode;
050            }
051            
052            public void setLeaveCode(String leaveCode) {
053                    this.leaveCode = leaveCode;
054            }
055            
056            public String getSubmittedTime() {
057                    return submittedTime;
058            }
059            
060            public void setSubmittedTime(String submittedTime) {
061                    this.submittedTime = submittedTime;
062            }
063            
064            public String getLeaveRequestDocId() {
065                    return leaveRequestDocId;
066            }
067    
068            public void setLeaveRequestDocId(String leaveRequestDocId) {
069                    this.leaveRequestDocId = leaveRequestDocId;
070            }
071            
072            public String getRequestedHours() {
073                    return requestedHours;
074            }
075    
076            public void setRequestedHours(String requestedHours) {
077                    this.requestedHours = requestedHours;
078            }
079    
080    }