View Javadoc

1   package org.kuali.ole.patron.bill;
2   
3   import org.kuali.rice.krad.maintenance.MaintenanceDocument;
4   import org.kuali.rice.krad.uif.UifConstants;
5   import org.kuali.rice.krad.web.form.DocumentFormBase;
6   
7   import org.kuali.rice.krad.maintenance.MaintenanceDocument;
8   import org.kuali.rice.krad.uif.UifConstants.ViewType;
9   
10  /**
11   * Created with IntelliJ IDEA.
12   * User: ?
13   * Date: 10/24/12
14   * Time: 8:33 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class PatronBillPaymentForm extends DocumentFormBase {
18  
19  
20      /**
21       * Copyright 2005-2012 The Kuali Foundation
22       *
23       * Licensed under the Educational Community License, Version 2.0 (the "License");
24       * you may not use this file except in compliance with the License.
25       * You may obtain a copy of the License at
26       *
27       * http://www.opensource.org/licenses/ecl2.php
28       *
29       * Unless required by applicable law or agreed to in writing, software
30       * distributed under the License is distributed on an "AS IS" BASIS,
31       * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32       * See the License for the specific language governing permissions and
33       * limitations under the License.
34       */
35  
36  
37  
38  
39          private static final long serialVersionUID = -5805825500852498048L;
40  
41          protected String dataObjectClassName;
42          protected String maintenanceAction;
43  
44          private String patronId;
45          private PatronBillPayment patronBillPayment;
46  
47          public PatronBillPaymentForm() {
48              super();
49              setViewTypeName(UifConstants.ViewType.MAINTENANCE);
50          }
51  
52          @Override
53          public MaintenanceDocument getDocument() {
54              return (MaintenanceDocument) super.getDocument();
55          }
56  
57          // This is to provide a setter with matching type to
58          // public MaintenanceDocument getDocument() so that no
59          // issues occur with spring 3.1-M2 bean wrappers
60          public void setDocument(MaintenanceDocument document) {
61              super.setDocument(document);
62          }
63  
64          public String getDataObjectClassName() {
65              return this.dataObjectClassName;
66          }
67  
68          public void setDataObjectClassName(String dataObjectClassName) {
69              this.dataObjectClassName = dataObjectClassName;
70          }
71  
72          public String getMaintenanceAction() {
73              return this.maintenanceAction;
74          }
75  
76          public void setMaintenanceAction(String maintenanceAction) {
77              this.maintenanceAction = maintenanceAction;
78          }
79  
80          public String getPatronId() {
81              return patronId;
82          }
83  
84          public void setPatronId(String patronId) {
85              this.patronId = patronId;
86          }
87  
88          public PatronBillPayment getPatronBillPayment() {
89              return patronBillPayment;
90          }
91  
92          public void setPatronBillPayment(PatronBillPayment patronBillPayment) {
93              this.patronBillPayment = patronBillPayment;
94          }
95  }