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