1 package org.kuali.ole.deliver.form;
2
3 import org.kuali.ole.deliver.bo.OlePatronDocument;
4 import org.kuali.ole.deliver.bo.OleTitleLevelRequestItem;
5 import org.kuali.ole.docstore.common.document.Item;
6 import org.kuali.rice.krad.web.form.UifFormBase;
7
8 import java.sql.Date;
9 import java.util.List;
10
11
12
13
14 public class OLEPlaceRequestForm extends UifFormBase {
15
16 private String bibId;
17 private String itemId;
18 private String title;
19 private String author;
20 private String holdingId;
21 private String patronBarcode;
22 private String patronId;
23 private String patronType;
24 private String patronName;
25 private boolean processRequest=false;
26 private String requestLevel;
27 private String requestType;
28 private Date requestExpiryDate;
29 private String pickUpLocationId;
30 private boolean address;
31 private String createDate;
32 private String recallRequestType;
33 private String holdRequestType;
34 private String pageRequestType;
35 private String copyRequestType;
36 private boolean blockOverride=false;
37
38 private boolean recallRequest;
39 private boolean holdRequest;
40 private boolean pageRequest;
41 private boolean copyRequest;
42 private String itemBarcode;
43
44 private String itemLocation;
45 private String pickUpLocationCode;
46
47 private OlePatronDocument olePatronDocument;
48
49 private String errorMessage;
50 private String itemStatus;
51 private String successMessage;
52 private boolean titleLevelRequest;
53 private boolean itemLevelRequest = true;
54 private boolean itemEligible=true;
55 private List<OleTitleLevelRequestItem> titleLevelRequestItems;
56 private boolean patronFound;
57 private String itemType;
58 private String newPrincipalId;
59 private String loanLoginName;
60 private boolean overrideFlag;
61 private String overrideLoginMessage;
62 private String overrideErrorMessage;
63 private boolean blockSubmit=false;
64
65 public boolean isBlockSubmit() {
66 return blockSubmit;
67 }
68
69 public void setBlockSubmit(boolean blockSubmit) {
70 this.blockSubmit = blockSubmit;
71 }
72
73 public String getOverrideErrorMessage() {
74 return overrideErrorMessage;
75 }
76
77 public void setOverrideErrorMessage(String overrideErrorMessage) {
78 this.overrideErrorMessage = overrideErrorMessage;
79 }
80
81 public String getOverrideLoginMessage() {
82 return overrideLoginMessage;
83 }
84
85 public void setOverrideLoginMessage(String overrideLoginMessage) {
86 this.overrideLoginMessage = overrideLoginMessage;
87 }
88
89 public boolean isOverrideFlag() {
90 return overrideFlag;
91 }
92
93 public void setOverrideFlag(boolean overrideFlag) {
94 this.overrideFlag = overrideFlag;
95 }
96
97 public String getLoanLoginName() {
98 return loanLoginName;
99 }
100
101 public void setLoanLoginName(String loanLoginName) {
102 this.loanLoginName = loanLoginName;
103 }
104
105 public String getNewPrincipalId() {
106 return newPrincipalId;
107 }
108
109 public void setNewPrincipalId(String newPrincipalId) {
110 this.newPrincipalId = newPrincipalId;
111 }
112
113 public boolean isBlockOverride() {
114 return blockOverride;
115 }
116
117 public void setBlockOverride(boolean blockOverride) {
118 this.blockOverride = blockOverride;
119 }
120
121 public String getCreateDate() {
122 return createDate;
123 }
124
125 public void setCreateDate(String createDate) {
126 this.createDate = createDate;
127 }
128
129 public boolean isAddress() {
130 return address;
131 }
132
133 public void setAddress(boolean address) {
134 this.address = address;
135 }
136
137 public String getPickUpLocationId() {
138 return pickUpLocationId;
139 }
140
141 public void setPickUpLocationId(String pickUpLocationId) {
142 this.pickUpLocationId = pickUpLocationId;
143 }
144
145 public Date getRequestExpiryDate() {
146 return requestExpiryDate;
147 }
148
149 public void setRequestExpiryDate(Date requestExpiryDate) {
150 this.requestExpiryDate = requestExpiryDate;
151 }
152
153 public String getRequestLevel() {
154 return requestLevel;
155 }
156
157 public void setRequestLevel(String requestLevel) {
158 this.requestLevel = requestLevel;
159 }
160
161 public String getRequestType() {
162 return requestType;
163 }
164
165 public void setRequestType(String requestType) {
166 this.requestType = requestType;
167 }
168
169 public boolean isProcessRequest() {
170 return processRequest;
171 }
172
173 public void setProcessRequest(boolean processRequest) {
174 this.processRequest = processRequest;
175 }
176
177 public String getPatronType() {
178 return patronType;
179 }
180
181 public void setPatronType(String patronType) {
182 this.patronType = patronType;
183 }
184
185 public String getPatronName() {
186 if(olePatronDocument!=null ){
187 if( olePatronDocument.getRealPatronFirstName()!=null ){
188 patronName = olePatronDocument.getRealPatronFirstName();}
189 if(olePatronDocument.getRealPatronLastName()!=null){
190 patronName = patronName + " " + olePatronDocument.getRealPatronLastName();
191 }
192 }
193 return patronName;
194 }
195
196 public void setPatronName(String patronName) {
197 this.patronName = patronName;
198 }
199
200 public String getPatronId() {
201 return patronId;
202 }
203
204 public void setPatronId(String patronId) {
205 this.patronId = patronId;
206 }
207
208 public String getPatronBarcode() {
209 return patronBarcode;
210 }
211
212 public void setPatronBarcode(String patronBarcode) {
213 this.patronBarcode = patronBarcode;
214 }
215
216 public String getHoldingId() {
217 return holdingId;
218 }
219
220 public void setHoldingId(String holdingId) {
221 this.holdingId = holdingId;
222 }
223
224 public String getTitle() {
225 return title;
226 }
227
228 public void setTitle(String title) {
229 this.title = title;
230 }
231
232 public String getAuthor() {
233 return author;
234 }
235
236 public void setAuthor(String author) {
237 this.author = author;
238 }
239
240 public String getBibId() {
241 return bibId;
242 }
243
244 public void setBibId(String bibId) {
245 this.bibId = bibId;
246 }
247
248 public String getItemId() {
249 return itemId;
250 }
251
252 public void setItemId(String itemId) {
253 this.itemId = itemId;
254 }
255
256 public String getRecallRequestType() {
257 return recallRequestType;
258 }
259
260 public void setRecallRequestType(String recallRequestType) {
261 this.recallRequestType = recallRequestType;
262 }
263
264 public String getHoldRequestType() {
265 return holdRequestType;
266 }
267
268 public void setHoldRequestType(String holdRequestType) {
269 this.holdRequestType = holdRequestType;
270 }
271
272 public String getPageRequestType() {
273 return pageRequestType;
274 }
275
276 public void setPageRequestType(String pageRequestType) {
277 this.pageRequestType = pageRequestType;
278 }
279
280 public String getCopyRequestType() {
281 return copyRequestType;
282 }
283
284 public void setCopyRequestType(String copyRequestType) {
285 this.copyRequestType = copyRequestType;
286 }
287
288 public boolean isRecallRequest() {
289 return recallRequest;
290 }
291
292 public void setRecallRequest(boolean recallRequest) {
293 this.recallRequest = recallRequest;
294 }
295
296 public boolean isHoldRequest() {
297 return holdRequest;
298 }
299
300 public void setHoldRequest(boolean holdRequest) {
301 this.holdRequest = holdRequest;
302 }
303
304 public boolean isPageRequest() {
305 return pageRequest;
306 }
307
308 public void setPageRequest(boolean pageRequest) {
309 this.pageRequest = pageRequest;
310 }
311
312 public boolean isCopyRequest() {
313 return copyRequest;
314 }
315
316 public void setCopyRequest(boolean copyRequest) {
317 this.copyRequest = copyRequest;
318 }
319
320
321 public OlePatronDocument getOlePatronDocument() {
322 return olePatronDocument;
323 }
324
325 public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
326 this.olePatronDocument = olePatronDocument;
327 }
328
329 public String getItemBarcode() {
330 return itemBarcode;
331 }
332
333 public void setItemBarcode(String itemBarcode) {
334 this.itemBarcode = itemBarcode;
335 }
336
337 public String getItemLocation() {
338 return itemLocation;
339 }
340
341 public void setItemLocation(String itemLocation) {
342 this.itemLocation = itemLocation;
343 }
344
345 public String getPickUpLocationCode() {
346 return pickUpLocationCode;
347 }
348
349 public void setPickUpLocationCode(String pickUpLocationCode) {
350 this.pickUpLocationCode = pickUpLocationCode;
351 }
352
353 public String getErrorMessage() {
354 return errorMessage;
355 }
356
357 public void setErrorMessage(String errorMessage) {
358 this.errorMessage = errorMessage;
359 }
360
361 public String getItemStatus() {
362 return itemStatus;
363 }
364
365 public void setItemStatus(String itemStatus) {
366 this.itemStatus = itemStatus;
367 }
368
369 public String getSuccessMessage() {
370 return successMessage;
371 }
372
373 public void setSuccessMessage(String successMessage) {
374 this.successMessage = successMessage;
375 }
376
377 public List<OleTitleLevelRequestItem> getTitleLevelRequestItems() {
378 return titleLevelRequestItems;
379 }
380
381 public void setTitleLevelRequestItems(List<OleTitleLevelRequestItem> titleLevelRequestItems) {
382 this.titleLevelRequestItems = titleLevelRequestItems;
383 }
384
385 public boolean isTitleLevelRequest() {
386 return titleLevelRequest;
387 }
388
389 public void setTitleLevelRequest(boolean titleLevelRequest) {
390 this.titleLevelRequest = titleLevelRequest;
391 }
392
393 public boolean isItemLevelRequest() {
394 return itemLevelRequest;
395 }
396
397 public void setItemLevelRequest(boolean itemLevelRequest) {
398 this.itemLevelRequest = itemLevelRequest;
399 }
400
401 public boolean isItemEligible() {
402 return itemEligible;
403 }
404
405 public void setItemEligible(boolean itemEligible) {
406 this.itemEligible = itemEligible;
407 }
408
409 public boolean isPatronFound() {
410 return patronFound;
411 }
412
413 public void setPatronFound(boolean patronFound) {
414 this.patronFound = patronFound;
415 }
416
417 public String getItemType() {
418 return itemType;
419 }
420
421 public void setItemType(String itemType) {
422 this.itemType = itemType;
423 }
424 }