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