1 /**
2 * Copyright 2005-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 edu.sampleu.travel.approval;
17
18 import org.kuali.rice.krad.web.form.TransactionalDocumentFormBase;
19
20 /**
21 * Transactional doc form implementation for the travel authorization document.
22 *
23 * <p>
24 * Holds properties necessary to determine the {@code View} instance that
25 * will be used to render the UI for the travel authorization document.
26 * </p>
27 *
28 * @author Kuali Rice Team (rice.collab@kuali.org)
29 */
30 public class TravelAuthorizationForm extends TransactionalDocumentFormBase {
31
32 private String travelerFirstName;
33 private String travelerLastName;
34
35 public TravelAuthorizationForm() {
36 super();
37 }
38
39 /**
40 * Determines the default type name.
41 *
42 * <p>
43 * The default document type name is specific for each type of KRAD transactional
44 * document and manually set.
45 * </p>
46 *
47 * @link TravelAuthorizationForm#getDefaultDocumentTypeName()
48 * @return String - default document type name
49 */
50 @Override
51 protected String getDefaultDocumentTypeName() {
52 return "TravelAuthorization";
53 }
54
55 public void setTravelerFirstName(String travelerFirstName) {
56 this.travelerFirstName = travelerFirstName;
57 }
58
59 public String getTravelerFirstName() {
60 return travelerFirstName;
61 }
62
63 public void setTravelerLastName(String travelerLastName) {
64 this.travelerLastName = travelerLastName;
65 }
66
67 public String getTravelerLastName() {
68 return travelerLastName;
69 }
70 }