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