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