View Javadoc
1   /**
2    * Copyright 2005-2016 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.rice.legacy;
17  
18  import org.kuali.rice.core.api.util.type.KualiDecimal;
19  import org.kuali.rice.krad.data.jpa.converters.KualiDecimalConverter;
20  import org.kuali.rice.krad.data.provider.annotation.Description;
21  import org.kuali.rice.krad.data.provider.annotation.KeyValuesFinderClass;
22  import org.kuali.rice.krad.data.provider.annotation.Label;
23  import org.kuali.rice.krad.data.provider.annotation.UifDisplayHint;
24  import org.kuali.rice.krad.data.provider.annotation.UifDisplayHintType;
25  import org.kuali.rice.krad.data.provider.annotation.UifDisplayHints;
26  import org.kuali.rice.krad.document.TransactionalDocumentBase;
27  
28  import javax.persistence.CascadeType;
29  import javax.persistence.Column;
30  import javax.persistence.Convert;
31  import javax.persistence.FetchType;
32  import javax.persistence.OneToMany;
33  import javax.persistence.Temporal;
34  import javax.persistence.TemporalType;
35  import javax.persistence.Transient;
36  import java.util.ArrayList;
37  import java.util.Date;
38  import java.util.List;
39  
40  /**
41   * @author Kuali Rice Team (rice.collab@kuali.org)
42   */
43  public class LegacyTravelAuthorization extends TransactionalDocumentBase {
44      private static final long serialVersionUID = -6609385831976630737L;
45  
46      // trip begin date
47  //    @Temporal(TemporalType.DATE)
48  //    @Column(name="TRVL_BGN_DT")
49  //    @Label("Trip Begin Date")
50      private Date tripBegin;
51  
52      // trip end date
53  //    @Temporal(TemporalType.DATE)
54  //    @Column(name="TRVL_END_DT")
55  //    @Label("Trip End Date")
56      private Date tripEnd;
57  
58      // travel description
59  //    @Column(name="TRVL_DESC",length=255)
60  //    @Label("Business Purpose")
61      private String tripDescription;
62  
63      // travel destination
64  //    @Column(name="TRVL_DEST_ID",length=40)
65      private String tripDestinationId;
66  //    @Transient
67  //    private TravelDestination tripDestination;
68  
69      // traveler
70  //    @Column(name="TRAVELER_DTL_ID",length=40)
71      private String travelerDetailId;
72  //    @Transient
73  //    private TravelerDetail travelerDetail;
74  
75      // travel type code
76  //    @Column(name = "TRVL_TYP_CD", length = 40)
77  //    @Label("Travel type code")
78  //    @Description("Trip Type")
79  //    @KeyValuesFinderClass(TripTypeKeyValuesFinder.class)
80  //    @UifDisplayHints({
81  //            @UifDisplayHint(UifDisplayHintType.DROPDOWN),
82  //            @UifDisplayHint(UifDisplayHintType.NO_INQUIRY)})
83      private String travelTypeCode;
84  
85      // expense limit
86  //    @Column(name="EXP_LMT",length=19,precision=2)
87  //    @Label("Expense Limit")
88  //    @Convert(converter=KualiDecimalConverter.class)
89  //    @Description("Expense limit imposed by department or grant or some other budgetary restrictions on trip.")
90      private KualiDecimal expenseLimit;
91  
92      // contact number
93  //    @Column(name="CELL_PH_NUM",length=20)
94  //    @Label("Contact Number")
95  //    @Description("This is the contact phone number during the trip.")
96      private String cellPhoneNumber;
97  
98  //    @OneToMany(fetch= FetchType.EAGER, orphanRemoval=true, cascade= {CascadeType.ALL}, mappedBy = "travelAuthorizationDocument")
99  //    private List<TravelPerDiemExpense> dailyExpenseEstimates = new ArrayList<TravelPerDiemExpense>();
100 //
101 //    @OneToMany(fetch= FetchType.EAGER, orphanRemoval=true, cascade= {CascadeType.ALL}, mappedBy = "travelAuthorizationDocument")
102 //    private List<TravelExpenseItem> actualExpenseItems = new ArrayList<TravelExpenseItem>();
103 
104     public Date getTripBegin() {
105         return tripBegin;
106     }
107 
108     public void setTripBegin(Date tripBegin) {
109         this.tripBegin = tripBegin;
110     }
111 
112     public Date getTripEnd() {
113         return tripEnd;
114     }
115 
116     public void setTripEnd(Date tripEnd) {
117         this.tripEnd = tripEnd;
118     }
119 
120     public String getTripDescription() {
121         return tripDescription;
122     }
123 
124     public void setTripDescription(String tripDescription) {
125         this.tripDescription = tripDescription;
126     }
127 
128     public String getTravelerDetailId() {
129         return travelerDetailId;
130     }
131 
132     public void setTravelerDetailId(String travelerDetailId) {
133         this.travelerDetailId = travelerDetailId;
134     }
135 
136 //    public TravelerDetail getTravelerDetail() {
137 //        return travelerDetail;
138 //    }
139 //
140 //    public void setTravelerDetail(TravelerDetail travelerDetail) {
141 //        this.travelerDetail = travelerDetail;
142 //    }
143 
144     public String getCellPhoneNumber() {
145         return cellPhoneNumber;
146     }
147 
148     public void setCellPhoneNumber(String cellPhoneNumber) {
149         this.cellPhoneNumber = cellPhoneNumber;
150     }
151 
152     public KualiDecimal getExpenseLimit() {
153         return expenseLimit;
154     }
155 
156     public void setExpenseLimit(KualiDecimal expenseLimit) {
157         this.expenseLimit = expenseLimit;
158     }
159 
160     public String getTripDestinationId() {
161         return tripDestinationId;
162     }
163 
164     public void setTripDestinationId(String tripDestinationId) {
165         this.tripDestinationId = tripDestinationId;
166     }
167 
168 //    public TravelDestination getTripDestination() {
169 //        return tripDestination;
170 //    }
171 //
172 //    public void setTripDestination(TravelDestination tripDestination) {
173 //        this.tripDestination = tripDestination;
174 //    }
175 
176 //    public List<TravelPerDiemExpense> getDailyExpenseEstimates() {
177 //        return dailyExpenseEstimates;
178 //    }
179 //
180 //    public void setDailyExpenseEstimates(List<TravelPerDiemExpense> dailyExpenseEstimates) {
181 //        this.dailyExpenseEstimates = dailyExpenseEstimates;
182 //    }
183 
184 //    public List<TravelExpenseItem> getActualExpenseItems() {
185 //        return actualExpenseItems;
186 //    }
187 //
188 //    public void setActualExpenseItems(List<TravelExpenseItem> actualExpenseItems) {
189 //        this.actualExpenseItems = actualExpenseItems;
190 //    }
191 
192     public String getTravelTypeCode() {
193         return travelTypeCode;
194     }
195 
196     public void setTravelTypeCode(String travelTypeCode) {
197         this.travelTypeCode = travelTypeCode;
198     }
199 }