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