1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.web.form;
17
18
19 import javax.servlet.http.HttpServletRequest;
20
21 import org.apache.commons.lang.StringUtils;
22 import org.apache.log4j.Logger;
23 import org.kuali.rice.krad.inquiry.Inquirable;
24 import org.kuali.rice.krad.uif.UifConstants.ViewType;
25 import org.kuali.rice.krad.uif.view.InquiryView;
26
27
28
29
30
31
32 public class InquiryForm extends UifFormBase {
33 private static final long serialVersionUID = 4733144086378429410L;
34
35 private String dataObjectClassName;
36 private Object dataObject;
37
38 private boolean redirectedInquiry;
39
40 public InquiryForm() {
41 setViewTypeName(ViewType.INQUIRY);
42
43 redirectedInquiry = false;
44 }
45
46
47
48
49
50 @Override
51 public void postBind(HttpServletRequest request) {
52 super.postBind(request);
53
54 if (StringUtils.isBlank(getDataObjectClassName())) {
55 setDataObjectClassName(((InquiryView) getView()).getDataObjectClassName().getName());
56 }
57 }
58
59
60
61
62
63
64
65
66
67
68
69 public String getDataObjectClassName() {
70 return this.dataObjectClassName;
71 }
72
73
74
75
76
77
78 public void setDataObjectClassName(String dataObjectClassName) {
79 this.dataObjectClassName = dataObjectClassName;
80 }
81
82
83
84
85
86
87 public Object getDataObject() {
88 return this.dataObject;
89 }
90
91
92
93
94
95
96 public void setDataObject(Object dataObject) {
97 this.dataObject = dataObject;
98 }
99
100
101
102
103
104
105
106 public boolean isRedirectedInquiry() {
107 return redirectedInquiry;
108 }
109
110
111
112
113
114
115 public void setRedirectedInquiry(boolean redirectedInquiry) {
116 this.redirectedInquiry = redirectedInquiry;
117 }
118
119
120
121
122
123
124
125 public Inquirable getInquirable() {
126 return (Inquirable) getView().getViewHelperService();
127 }
128
129 }