1 package org.kuali.ole.select.bo;
2
3 import org.apache.commons.lang.StringUtils;
4 import org.kuali.ole.module.purap.PurapConstants;
5 import org.kuali.ole.select.form.OLESerialReceivingForm;
6 import org.kuali.rice.kew.api.KewApiConstants;
7 import org.kuali.rice.kew.api.KewApiServiceLocator;
8 import org.kuali.rice.kew.api.doctype.DocumentType;
9 import org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange;
10 import org.kuali.rice.krad.document.TransactionalDocumentBase;
11 import org.kuali.rice.krad.util.KRADConstants;
12
13 import java.sql.Timestamp;
14 import java.util.Date;
15 import java.util.List;
16
17
18
19
20
21
22
23
24 public class OLESerialReceivingDocument extends TransactionalDocumentBase {
25 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OLESerialReceivingDocument.class);
26 private String serialReceivingRecordId;
27 private Date actionDate;
28 private String actionInterval;
29 private String bibId;
30 private String localId;
31 private String boundLocation;
32 private String callNumber;
33 private String receivingRecordType;
34 private String chronologyCaptionLevel1;
35 private String chronologyCaptionLevel2;
36 private String chronologyCaptionLevel3;
37 private String chronologyCaptionLevel4;
38 private boolean claim;
39 private String claimType;
40 private String claimIntervalInformation;
41 private String copyNumber;
42 private String corporateAuthor;
43 private boolean createItem;
44 private String enumerationCaptionLevel1;
45 private String enumerationCaptionLevel2;
46 private String enumerationCaptionLevel3;
47 private String enumerationCaptionLevel4;
48 private String enumerationCaptionLevel5;
49 private String enumerationCaptionLevel6;
50 private String generalReceivingNote;
51 private String instanceId;
52 private String issn;
53 private String poId;
54 private boolean printLabel;
55 private String publisher;
56 private String serialReceiptLocation;
57 private String serialReceivingRecord;
58 private String subscriptionStatus;
59 private String title;
60 private String treatmentInstructionNote;
61 private String unboundLocation;
62 private String urgentNote;
63 private String vendorId;
64 private Timestamp createDate;
65 private String operatorId;
66 private String machineId;
67 private boolean publicDisplay;
68 private Timestamp subscriptionStatusDate;
69 private boolean specialIssueFlag;
70 private String specialIssueNote;
71 private boolean treatmentNoteFlag;
72 private boolean active = true;
73 private String treatmentDialogNote;
74 private List<OLESerialReceivingHistory> oleSerialReceivingHistoryList;
75 private List<OLESerialReceivingHistory> mainSerialReceivingHistoryList;
76 private List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList;
77 private List<OLESerialReceivingHistory> indexSerialReceivingHistoryList;
78 private String itemUUID;
79 private String enumCaption1;
80 private String enumCaption2;
81 private String enumCaption3;
82 private String enumCaption4;
83 private String enumCaption5;
84 private String enumCaption6;
85 private String enumLevel1;
86 private String enumLevel2;
87 private String enumLevel3;
88 private String enumLevel4;
89 private String enumLevel5;
90 private String enumLevel6;
91 private String chronCaption1;
92 private String chronCaption2;
93 private String chronCaption3;
94 private String chronCaption4;
95 private String chronLevel1;
96 private String chronLevel2;
97 private String chronLevel3;
98 private String chronLevel4;
99 private String serialReceiptHistoryId;
100 private boolean returnToSearch;
101 private String confirmMessage;
102 private String urgentDialogNote;
103 private boolean urgentNoteFlag;
104 private String vendorAliasName;
105 private String vendorName;
106 private String searchLimit;
107 private String poIdLink;
108 private String statusCode;
109 private List<OLESerialRelatedPODocument> oleSerialRelatedPODocuments;
110 private List<OLESerialReceivingType> oleSerialReceivingTypes;
111 private boolean linkPO;
112
113 private String serialPOErrMsg ;
114
115 private String enumCaption1Length;
116 private String enumCaption2Length;
117 private String enumCaption3Length;
118 private String enumCaption4Length;
119 private String enumCaption5Length;
120 private String enumCaption6Length;
121 private String chronCaption1Length;
122 private String chronCaption2Length;
123 private String chronCaption3Length;
124 private String chronCaption4Length;
125
126 private boolean itemCheckFlag=true;
127
128 private String tempInstanceId;
129
130 private boolean claimNoteFlag;
131 private boolean claimAgainNoteFlag;
132 private String claimDialogNote;
133
134 private boolean validPo = true;
135 private boolean availableReceivingRecordType = true;
136 private boolean availableSerialReceiptLocation = true;
137 private boolean validSubscriptionStatus = true;
138 private boolean validBibAndInstance = true;
139 private boolean recordAlreadyExist =false;
140 private boolean validRecordType = true;
141 private boolean validChildRecordType = true;
142 private boolean validChildHistoryRecordType = true;
143
144 private String enumerationHistoryCaptionLevel1;
145 private String enumerationHistoryCaptionLevel2;
146 private String enumerationHistoryCaptionLevel3;
147 private String enumerationHistoryCaptionLevel4;
148 private String enumerationHistoryCaptionLevel5;
149 private String enumerationHistoryCaptionLevel6;
150
151 private String chronologyHistoryCaptionLevel1;
152 private String chronologyHistoryCaptionLevel2;
153 private String chronologyHistoryCaptionLevel3;
154 private String chronologyHistoryCaptionLevel4;
155
156 private boolean displayMainHistory = false;
157
158 private boolean displaySupplementaryHistory = false;
159
160 private boolean displayIndexHistory = false;
161
162 public boolean isDisplayMainHistory() {
163 return displayMainHistory;
164 }
165
166 public void setDisplayMainHistory(boolean displayMainHistory) {
167 this.displayMainHistory = displayMainHistory;
168 }
169
170 public boolean isDisplaySupplementaryHistory() {
171 return displaySupplementaryHistory;
172 }
173
174 public void setDisplaySupplementaryHistory(boolean displaySupplementaryHistory) {
175 this.displaySupplementaryHistory = displaySupplementaryHistory;
176 }
177
178 public boolean isDisplayIndexHistory() {
179 return displayIndexHistory;
180 }
181
182 public void setDisplayIndexHistory(boolean displayIndexHistory) {
183 this.displayIndexHistory = displayIndexHistory;
184 }
185
186 public String getChronologyHistoryCaptionLevel1() {
187 return chronologyHistoryCaptionLevel1;
188 }
189
190 public void setChronologyHistoryCaptionLevel1(String chronologyHistoryCaptionLevel1) {
191 this.chronologyHistoryCaptionLevel1 = chronologyHistoryCaptionLevel1;
192 }
193
194 public String getChronologyHistoryCaptionLevel2() {
195 return chronologyHistoryCaptionLevel2;
196 }
197
198 public void setChronologyHistoryCaptionLevel2(String chronologyHistoryCaptionLevel2) {
199 this.chronologyHistoryCaptionLevel2 = chronologyHistoryCaptionLevel2;
200 }
201
202 public String getChronologyHistoryCaptionLevel3() {
203 return chronologyHistoryCaptionLevel3;
204 }
205
206 public void setChronologyHistoryCaptionLevel3(String chronologyHistoryCaptionLevel3) {
207 this.chronologyHistoryCaptionLevel3 = chronologyHistoryCaptionLevel3;
208 }
209
210 public String getChronologyHistoryCaptionLevel4() {
211 return chronologyHistoryCaptionLevel4;
212 }
213
214 public void setChronologyHistoryCaptionLevel4(String chronologyHistoryCaptionLevel4) {
215 this.chronologyHistoryCaptionLevel4 = chronologyHistoryCaptionLevel4;
216 }
217
218 public String getEnumerationHistoryCaptionLevel1() {
219 return enumerationHistoryCaptionLevel1;
220 }
221
222 public void setEnumerationHistoryCaptionLevel1(String enumerationHistoryCaptionLevel1) {
223 this.enumerationHistoryCaptionLevel1 = enumerationHistoryCaptionLevel1;
224 }
225
226 public String getEnumerationHistoryCaptionLevel2() {
227 return enumerationHistoryCaptionLevel2;
228 }
229
230 public void setEnumerationHistoryCaptionLevel2(String enumerationHistoryCaptionLevel2) {
231 this.enumerationHistoryCaptionLevel2 = enumerationHistoryCaptionLevel2;
232 }
233
234 public String getEnumerationHistoryCaptionLevel3() {
235 return enumerationHistoryCaptionLevel3;
236 }
237
238 public void setEnumerationHistoryCaptionLevel3(String enumerationHistoryCaptionLevel3) {
239 this.enumerationHistoryCaptionLevel3 = enumerationHistoryCaptionLevel3;
240 }
241
242 public String getEnumerationHistoryCaptionLevel4() {
243 return enumerationHistoryCaptionLevel4;
244 }
245
246 public void setEnumerationHistoryCaptionLevel4(String enumerationHistoryCaptionLevel4) {
247 this.enumerationHistoryCaptionLevel4 = enumerationHistoryCaptionLevel4;
248 }
249
250 public String getEnumerationHistoryCaptionLevel5() {
251 return enumerationHistoryCaptionLevel5;
252 }
253
254 public void setEnumerationHistoryCaptionLevel5(String enumerationHistoryCaptionLevel5) {
255 this.enumerationHistoryCaptionLevel5 = enumerationHistoryCaptionLevel5;
256 }
257
258 public String getEnumerationHistoryCaptionLevel6() {
259 return enumerationHistoryCaptionLevel6;
260 }
261
262 public void setEnumerationHistoryCaptionLevel6(String enumerationHistoryCaptionLevel6) {
263 this.enumerationHistoryCaptionLevel6 = enumerationHistoryCaptionLevel6;
264 }
265
266 public boolean isRecordAlreadyExist() {
267 return recordAlreadyExist;
268 }
269
270 public void setRecordAlreadyExist(boolean recordAlreadyExist) {
271 this.recordAlreadyExist = recordAlreadyExist;
272 }
273
274 public boolean isValidBibAndInstance() {
275 return validBibAndInstance;
276 }
277
278 public void setValidBibAndInstance(boolean validBibAndInstance) {
279 this.validBibAndInstance = validBibAndInstance;
280 }
281
282 public boolean isValidPo() {
283 return validPo;
284 }
285
286 public void setValidPo(boolean validPo) {
287 this.validPo = validPo;
288 }
289
290 public boolean isAvailableReceivingRecordType() {
291 return availableReceivingRecordType;
292 }
293
294 public void setAvailableReceivingRecordType(boolean availableReceivingRecordType) {
295 this.availableReceivingRecordType = availableReceivingRecordType;
296 }
297
298 public boolean isAvailableSerialReceiptLocation() {
299 return availableSerialReceiptLocation;
300 }
301
302 public void setAvailableSerialReceiptLocation(boolean availableSerialReceiptLocation) {
303 this.availableSerialReceiptLocation = availableSerialReceiptLocation;
304 }
305
306 public boolean isValidSubscriptionStatus() {
307 return validSubscriptionStatus;
308 }
309
310 public void setValidSubscriptionStatus(boolean validSubscriptionStatus) {
311 this.validSubscriptionStatus = validSubscriptionStatus;
312 }
313
314 public boolean isClaimAgainNoteFlag() {
315 return claimAgainNoteFlag;
316 }
317
318 public void setClaimAgainNoteFlag(boolean claimAgainNoteFlag) {
319 this.claimAgainNoteFlag = claimAgainNoteFlag;
320 }
321
322 public String getClaimDialogNote() {
323 return claimDialogNote;
324 }
325
326 public void setClaimDialogNote(String claimDialogNote) {
327 this.claimDialogNote = claimDialogNote;
328 }
329
330 public boolean isClaimNoteFlag() {
331 return claimNoteFlag;
332 }
333
334 public void setClaimNoteFlag(boolean claimNoteFlag) {
335 this.claimNoteFlag = claimNoteFlag;
336 }
337
338 public String getTempInstanceId() {
339 return tempInstanceId;
340 }
341
342 public void setTempInstanceId(String tempInstanceId) {
343 this.tempInstanceId = tempInstanceId;
344 }
345
346 public boolean isItemCheckFlag() {
347 return itemCheckFlag;
348 }
349
350 public void setItemCheckFlag(boolean itemCheckFlag) {
351 this.itemCheckFlag = itemCheckFlag;
352 }
353
354 public List<OLESerialReceivingType> getOleSerialReceivingTypes() {
355 return oleSerialReceivingTypes;
356 }
357
358 public void setOleSerialReceivingTypes(List<OLESerialReceivingType> oleSerialReceivingTypes) {
359 this.oleSerialReceivingTypes = oleSerialReceivingTypes;
360 }
361
362 public String getSerialPOErrMsg() {
363 return serialPOErrMsg;
364 }
365
366 public void setSerialPOErrMsg(String serialPOErrMsg) {
367 this.serialPOErrMsg = serialPOErrMsg;
368 }
369
370 public boolean isLinkPO() {
371 return linkPO;
372 }
373
374 public void setLinkPO(boolean linkPO) {
375 this.linkPO = linkPO;
376 }
377
378 public List<OLESerialRelatedPODocument> getOleSerialRelatedPODocuments() {
379 return oleSerialRelatedPODocuments;
380 }
381
382 public void setOleSerialRelatedPODocuments(List<OLESerialRelatedPODocument> oleSerialRelatedPODocuments) {
383 this.oleSerialRelatedPODocuments = oleSerialRelatedPODocuments;
384 }
385
386 public String getStatusCode() {
387 return statusCode;
388 }
389
390 public void setStatusCode(String statusCode) {
391 this.statusCode = statusCode;
392 }
393
394 public String getPoIdLink() {
395 return poIdLink;
396 }
397
398 public void setPoIdLink(String poIdLink) {
399 this.poIdLink = poIdLink;
400 }
401
402 public List<OLESerialReceivingHistory> getMainSerialReceivingHistoryList() {
403 return mainSerialReceivingHistoryList;
404 }
405
406 public void setMainSerialReceivingHistoryList(List<OLESerialReceivingHistory> mainSerialReceivingHistoryList) {
407 this.mainSerialReceivingHistoryList = mainSerialReceivingHistoryList;
408 }
409
410 public List<OLESerialReceivingHistory> getSupplementSerialReceivingHistoryList() {
411 return supplementSerialReceivingHistoryList;
412 }
413
414 public void setSupplementSerialReceivingHistoryList(List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList) {
415 this.supplementSerialReceivingHistoryList = supplementSerialReceivingHistoryList;
416 }
417
418 public List<OLESerialReceivingHistory> getIndexSerialReceivingHistoryList() {
419 return indexSerialReceivingHistoryList;
420 }
421
422 public void setIndexSerialReceivingHistoryList(List<OLESerialReceivingHistory> indexSerialReceivingHistoryList) {
423 this.indexSerialReceivingHistoryList = indexSerialReceivingHistoryList;
424 }
425
426 public String getChronCaption1() {
427 return chronCaption1;
428 }
429
430 public void setChronCaption1(String chronCaption1) {
431 this.chronCaption1 = chronCaption1;
432 }
433
434 public String getChronCaption2() {
435 return chronCaption2;
436 }
437
438 public void setChronCaption2(String chronCaption2) {
439 this.chronCaption2 = chronCaption2;
440 }
441
442 public String getChronCaption3() {
443 return chronCaption3;
444 }
445
446 public void setChronCaption3(String chronCaption3) {
447 this.chronCaption3 = chronCaption3;
448 }
449
450 public String getChronCaption4() {
451 return chronCaption4;
452 }
453
454 public void setChronCaption4(String chronCaption4) {
455 this.chronCaption4 = chronCaption4;
456 }
457
458 public String getChronLevel1() {
459 return chronLevel1;
460 }
461
462 public void setChronLevel1(String chronLevel1) {
463 this.chronLevel1 = chronLevel1;
464 }
465
466 public String getChronLevel2() {
467 return chronLevel2;
468 }
469
470 public void setChronLevel2(String chronLevel2) {
471 this.chronLevel2 = chronLevel2;
472 }
473
474 public String getChronLevel3() {
475 return chronLevel3;
476 }
477
478 public void setChronLevel3(String chronLevel3) {
479 this.chronLevel3 = chronLevel3;
480 }
481
482 public String getChronLevel4() {
483 return chronLevel4;
484 }
485
486 public void setChronLevel4(String chronLevel4) {
487 this.chronLevel4 = chronLevel4;
488 }
489
490 public String getUrgentDialogNote() {
491 return urgentDialogNote;
492 }
493
494 public void setUrgentDialogNote(String urgentDialogNote) {
495 this.urgentDialogNote = urgentDialogNote;
496 }
497
498 public boolean isUrgentNoteFlag() {
499 return urgentNoteFlag;
500 }
501
502 public void setUrgentNoteFlag(boolean urgentNoteFlag) {
503 this.urgentNoteFlag = urgentNoteFlag;
504 }
505
506 public String getConfirmMessage() {
507 return confirmMessage;
508 }
509
510 public void setConfirmMessage(String confirmMessage) {
511 this.confirmMessage = confirmMessage;
512 }
513
514 public boolean isReturnToSearch() {
515 return returnToSearch;
516 }
517
518 public void setReturnToSearch(boolean returnToSearch) {
519 this.returnToSearch = returnToSearch;
520 }
521
522 public String getSerialReceiptHistoryId() {
523 return serialReceiptHistoryId;
524 }
525
526 public void setSerialReceiptHistoryId(String serialReceiptHistoryId) {
527 this.serialReceiptHistoryId = serialReceiptHistoryId;
528 }
529
530 public OLESerialReceivingForm form;
531
532 public OLESerialReceivingForm getForm() {
533 return form;
534 }
535
536 public void setForm(OLESerialReceivingForm form) {
537 this.form = form;
538 }
539
540 public String getSerialReceivingRecordId() {
541 return serialReceivingRecordId;
542 }
543
544 public void setSerialReceivingRecordId(String serialReceivingRecordId) {
545 this.serialReceivingRecordId = serialReceivingRecordId;
546 }
547
548 public Date getActionDate() {
549 return actionDate;
550 }
551
552 public void setActionDate(Date actionDate) {
553 this.actionDate = actionDate;
554 }
555
556 public String getActionInterval() {
557 return actionInterval;
558 }
559
560 public void setActionInterval(String actionInterval) {
561 this.actionInterval = actionInterval;
562 }
563
564 public String getBibId() {
565 return bibId;
566 }
567
568 public void setBibId(String bibId) {
569 this.bibId = bibId;
570 }
571
572 public String getBoundLocation() {
573 return boundLocation;
574 }
575
576 public void setBoundLocation(String boundLocation) {
577 this.boundLocation = boundLocation;
578 }
579
580 public String getCallNumber() {
581 return callNumber;
582 }
583
584 public void setCallNumber(String callNumber) {
585 this.callNumber = callNumber;
586 }
587
588 public String getReceivingRecordType() {
589 return receivingRecordType;
590 }
591
592 public void setReceivingRecordType(String receivingRecordType) {
593 this.receivingRecordType = receivingRecordType;
594 }
595
596 public String getChronologyCaptionLevel1() {
597 return chronologyCaptionLevel1;
598 }
599
600 public void setChronologyCaptionLevel1(String chronologyCaptionLevel1) {
601 this.chronologyCaptionLevel1 = chronologyCaptionLevel1;
602 }
603
604 public String getChronologyCaptionLevel2() {
605 return chronologyCaptionLevel2;
606 }
607
608 public void setChronologyCaptionLevel2(String chronologyCaptionLevel2) {
609 this.chronologyCaptionLevel2 = chronologyCaptionLevel2;
610 }
611
612 public String getChronologyCaptionLevel3() {
613 return chronologyCaptionLevel3;
614 }
615
616 public void setChronologyCaptionLevel3(String chronologyCaptionLevel3) {
617 this.chronologyCaptionLevel3 = chronologyCaptionLevel3;
618 }
619
620 public String getChronologyCaptionLevel4() {
621 return chronologyCaptionLevel4;
622 }
623
624 public void setChronologyCaptionLevel4(String chronologyCaptionLevel4) {
625 this.chronologyCaptionLevel4 = chronologyCaptionLevel4;
626 }
627
628 public boolean isClaim() {
629 return claim;
630 }
631
632 public void setClaim(boolean claim) {
633 this.claim = claim;
634 }
635
636 public String getClaimIntervalInformation() {
637 return claimIntervalInformation;
638 }
639
640 public void setClaimIntervalInformation(String claimIntervalInformation) {
641 this.claimIntervalInformation = claimIntervalInformation;
642 }
643
644 public String getCopyNumber() {
645 return copyNumber;
646 }
647
648 public void setCopyNumber(String copyNumber) {
649 this.copyNumber = copyNumber;
650 }
651
652 public String getCorporateAuthor() {
653 return corporateAuthor;
654 }
655
656 public void setCorporateAuthor(String corporateAuthor) {
657 this.corporateAuthor = corporateAuthor;
658 }
659
660 public boolean isCreateItem() {
661 return createItem;
662 }
663
664 public void setCreateItem(boolean createItem) {
665 this.createItem = createItem;
666 }
667
668 public String getEnumerationCaptionLevel1() {
669 return enumerationCaptionLevel1;
670 }
671
672 public void setEnumerationCaptionLevel1(String enumerationCaptionLevel1) {
673 this.enumerationCaptionLevel1 = enumerationCaptionLevel1;
674 }
675
676 public String getEnumerationCaptionLevel2() {
677 return enumerationCaptionLevel2;
678 }
679
680 public void setEnumerationCaptionLevel2(String enumerationCaptionLevel2) {
681 this.enumerationCaptionLevel2 = enumerationCaptionLevel2;
682 }
683
684 public String getEnumerationCaptionLevel3() {
685 return enumerationCaptionLevel3;
686 }
687
688 public void setEnumerationCaptionLevel3(String enumerationCaptionLevel3) {
689 this.enumerationCaptionLevel3 = enumerationCaptionLevel3;
690 }
691
692 public boolean isPublicDisplay() {
693 return publicDisplay;
694 }
695
696 public void setPublicDisplay(boolean publicDisplay) {
697 this.publicDisplay = publicDisplay;
698 }
699
700 public String getEnumerationCaptionLevel4() {
701 return enumerationCaptionLevel4;
702 }
703
704 public void setEnumerationCaptionLevel4(String enumerationCaptionLevel4) {
705 this.enumerationCaptionLevel4 = enumerationCaptionLevel4;
706 }
707
708 public String getEnumerationCaptionLevel5() {
709 return enumerationCaptionLevel5;
710 }
711
712 public void setEnumerationCaptionLevel5(String enumerationCaptionLevel5) {
713 this.enumerationCaptionLevel5 = enumerationCaptionLevel5;
714 }
715
716 public String getEnumerationCaptionLevel6() {
717 return enumerationCaptionLevel6;
718 }
719
720 public void setEnumerationCaptionLevel6(String enumerationCaptionLevel6) {
721 this.enumerationCaptionLevel6 = enumerationCaptionLevel6;
722 }
723
724 public String getGeneralReceivingNote() {
725 return generalReceivingNote;
726 }
727
728 public void setGeneralReceivingNote(String generalReceivingNote) {
729 this.generalReceivingNote = generalReceivingNote;
730 }
731
732 public String getInstanceId() {
733 return instanceId;
734 }
735
736 public void setInstanceId(String instanceId) {
737 this.instanceId = instanceId;
738 }
739
740 public String getIssn() {
741 return issn;
742 }
743
744 public void setIssn(String issn) {
745 this.issn = issn;
746 }
747
748 public String getPoId() {
749 return poId;
750 }
751
752 public void setPoId(String poId) {
753 this.poId = poId;
754 }
755
756 public boolean isPrintLabel() {
757 return printLabel;
758 }
759
760 public void setPrintLabel(boolean printLabel) {
761 this.printLabel = printLabel;
762 }
763
764 public String getPublisher() {
765 return publisher;
766 }
767
768 public void setPublisher(String publisher) {
769 this.publisher = publisher;
770 }
771
772 public String getSerialReceiptLocation() {
773 return serialReceiptLocation;
774 }
775
776 public void setSerialReceiptLocation(String serialReceiptLocation) {
777 this.serialReceiptLocation = serialReceiptLocation;
778 }
779
780 public String getSerialReceivingRecord() {
781 return serialReceivingRecord;
782 }
783
784 public void setSerialReceivingRecord(String serialReceivingRecord) {
785 this.serialReceivingRecord = serialReceivingRecord;
786 }
787
788 public String getSubscriptionStatus() {
789 return subscriptionStatus;
790 }
791
792 public void setSubscriptionStatus(String subscriptionStatus) {
793 this.subscriptionStatus = subscriptionStatus;
794 }
795
796 public String getTitle() {
797 return title;
798 }
799
800 public void setTitle(String title) {
801 this.title = title;
802 }
803
804 public String getTreatmentInstructionNote() {
805 return treatmentInstructionNote;
806 }
807
808 public void setTreatmentInstructionNote(String treatmentInstructionNote) {
809 this.treatmentInstructionNote = treatmentInstructionNote;
810 }
811
812 public String getUnboundLocation() {
813 return unboundLocation;
814 }
815
816 public void setUnboundLocation(String unboundLocation) {
817 this.unboundLocation = unboundLocation;
818 }
819
820 public String getUrgentNote() {
821 return urgentNote;
822 }
823
824 public String getLocalId() {
825 return localId;
826 }
827
828 public void setLocalId(String localId) {
829 this.localId = localId;
830 }
831
832 public void setUrgentNote(String urgentNote) {
833 this.urgentNote = urgentNote;
834 }
835
836 public String getVendorId() {
837 return vendorId;
838 }
839
840 public void setVendorId(String vendorId) {
841 this.vendorId = vendorId;
842 }
843
844 public Timestamp getCreateDate() {
845 return createDate;
846 }
847
848 public void setCreateDate(Timestamp createDate) {
849 this.createDate = createDate;
850 }
851
852 public String getOperatorId() {
853 return operatorId;
854 }
855
856 public void setOperatorId(String operatorId) {
857 this.operatorId = operatorId;
858 }
859
860 public String getMachineId() {
861 return machineId;
862 }
863
864 public void setMachineId(String machineId) {
865 this.machineId = machineId;
866 }
867
868 public Timestamp getSubscriptionStatusDate() {
869 return subscriptionStatusDate;
870 }
871
872 public void setSubscriptionStatusDate(Timestamp subscriptionStatusDate) {
873 this.subscriptionStatusDate = subscriptionStatusDate;
874 }
875
876 public List<OLESerialReceivingHistory> getOleSerialReceivingHistoryList() {
877 return oleSerialReceivingHistoryList;
878 }
879
880 public void setOleSerialReceivingHistoryList(List<OLESerialReceivingHistory> oleSerialReceivingHistoryList) {
881 this.oleSerialReceivingHistoryList = oleSerialReceivingHistoryList;
882 }
883
884 public boolean isSpecialIssueFlag() {
885 return specialIssueFlag;
886 }
887
888 public void setSpecialIssueFlag(boolean specialIssueFlag) {
889 this.specialIssueFlag = specialIssueFlag;
890 }
891
892 public String getSpecialIssueNote() {
893 return specialIssueNote;
894 }
895
896 public void setSpecialIssueNote(String specialIssueNote) {
897 this.specialIssueNote = specialIssueNote;
898 }
899
900 public boolean isTreatmentNoteFlag() {
901 return treatmentNoteFlag;
902 }
903
904 public void setTreatmentNoteFlag(boolean treatmentNoteFlag) {
905 this.treatmentNoteFlag = treatmentNoteFlag;
906 }
907
908 public String getTreatmentDialogNote() {
909 return treatmentDialogNote;
910 }
911
912 public void setTreatmentDialogNote(String treatmentDialogNote) {
913 this.treatmentDialogNote = treatmentDialogNote;
914 }
915
916
917 public boolean isActive() {
918 return active;
919 }
920
921 public void setActive(boolean active) {
922 this.active = active;
923 }
924
925 public String getItemUUID() {
926 return itemUUID;
927 }
928
929 public void setItemUUID(String itemUUID) {
930 this.itemUUID = itemUUID;
931 }
932
933 public String getEnumCaption1() {
934 return enumCaption1;
935 }
936
937 public void setEnumCaption1(String enumCaption1) {
938 this.enumCaption1 = enumCaption1;
939 }
940
941 public String getEnumCaption2() {
942 return enumCaption2;
943 }
944
945 public void setEnumCaption2(String enumCaption2) {
946 this.enumCaption2 = enumCaption2;
947 }
948
949 public String getEnumCaption3() {
950 return enumCaption3;
951 }
952
953 public void setEnumCaption3(String enumCaption3) {
954 this.enumCaption3 = enumCaption3;
955 }
956
957 public String getEnumCaption4() {
958 return enumCaption4;
959 }
960
961 public void setEnumCaption4(String enumCaption4) {
962 this.enumCaption4 = enumCaption4;
963 }
964
965 public String getEnumCaption5() {
966 return enumCaption5;
967 }
968
969 public void setEnumCaption5(String enumCaption5) {
970 this.enumCaption5 = enumCaption5;
971 }
972
973 public String getEnumCaption6() {
974 return enumCaption6;
975 }
976
977 public void setEnumCaption6(String enumCaption6) {
978 this.enumCaption6 = enumCaption6;
979 }
980
981 public String getEnumLevel1() {
982 return enumLevel1;
983 }
984
985 public void setEnumLevel1(String enumLevel1) {
986 this.enumLevel1 = enumLevel1;
987 }
988
989 public String getEnumLevel2() {
990 return enumLevel2;
991 }
992
993 public void setEnumLevel2(String enumLevel2) {
994 this.enumLevel2 = enumLevel2;
995 }
996
997 public String getEnumLevel3() {
998 return enumLevel3;
999 }
1000
1001 public void setEnumLevel3(String enumLevel3) {
1002 this.enumLevel3 = enumLevel3;
1003 }
1004
1005 public String getEnumLevel4() {
1006 return enumLevel4;
1007 }
1008
1009 public void setEnumLevel4(String enumLevel4) {
1010 this.enumLevel4 = enumLevel4;
1011 }
1012
1013 public String getEnumLevel5() {
1014 return enumLevel5;
1015 }
1016
1017 public void setEnumLevel5(String enumLevel5) {
1018 this.enumLevel5 = enumLevel5;
1019 }
1020
1021 public String getEnumLevel6() {
1022 return enumLevel6;
1023 }
1024
1025 public void setEnumLevel6(String enumLevel6) {
1026 this.enumLevel6 = enumLevel6;
1027 }
1028
1029 public String getVendorAliasName() {
1030 return vendorAliasName;
1031 }
1032
1033 public void setVendorAliasName(String vendorAliasName) {
1034 this.vendorAliasName = vendorAliasName;
1035 }
1036
1037 public String getVendorName() {
1038 return vendorName;
1039 }
1040
1041 public void setVendorName(String vendorName) {
1042 this.vendorName = vendorName;
1043 }
1044
1045 public String getSearchLimit() {
1046 return searchLimit;
1047 }
1048
1049 public void setSearchLimit(String searchLimit) {
1050 this.searchLimit = searchLimit;
1051 }
1052
1053 public String getEnumCaption1Length() {
1054 if(StringUtils.isBlank(enumCaption1Length)) {
1055 if(this.getEnumCaption1() != null) {
1056 return String.valueOf(this.getEnumCaption1().length());
1057 }else {
1058 return "0";
1059 }
1060 }
1061 return enumCaption1Length;
1062 }
1063
1064 public void setEnumCaption1Length(String enumCaption1Length) {
1065 this.enumCaption1Length = enumCaption1Length;
1066 }
1067
1068 public String getEnumCaption2Length() {
1069 if(StringUtils.isBlank(enumCaption2Length)) {
1070 if(this.getEnumCaption2() != null) {
1071 return String.valueOf(this.getEnumCaption2().length());
1072 }else {
1073 return "0";
1074 }
1075 }
1076 return enumCaption2Length;
1077 }
1078
1079 public void setEnumCaption2Length(String enumCaption2Length) {
1080 this.enumCaption2Length = enumCaption2Length;
1081 }
1082
1083 public String getEnumCaption3Length() {
1084 if(StringUtils.isBlank(enumCaption3Length)) {
1085 if(this.getEnumCaption3() != null) {
1086 return String.valueOf(this.getEnumCaption3().length());
1087 }else {
1088 return "0";
1089 }
1090 }
1091 return enumCaption3Length;
1092 }
1093
1094 public void setEnumCaption3Length(String enumCaption3Length) {
1095 this.enumCaption3Length = enumCaption3Length;
1096 }
1097
1098 public String getEnumCaption4Length() {
1099 if(StringUtils.isBlank(enumCaption4Length)) {
1100 if(this.getEnumCaption4() != null) {
1101 return String.valueOf(this.getEnumCaption4().length());
1102 }else {
1103 return "0";
1104 }
1105 }
1106 return enumCaption4Length;
1107 }
1108
1109 public void setEnumCaption4Length(String enumCaption4Length) {
1110 this.enumCaption4Length = enumCaption4Length;
1111 }
1112
1113 public String getEnumCaption5Length() {
1114 if(StringUtils.isBlank(enumCaption5Length)) {
1115 if(this.getEnumCaption5() != null) {
1116 return String.valueOf(this.getEnumCaption5().length());
1117 }else {
1118 return "0";
1119 }
1120 }
1121 return enumCaption5Length;
1122 }
1123
1124 public void setEnumCaption5Length(String enumCaption5Length) {
1125 this.enumCaption5Length = enumCaption5Length;
1126 }
1127
1128 public String getEnumCaption6Length() {
1129 if(StringUtils.isBlank(enumCaption6Length)) {
1130 if(this.getEnumCaption6() != null) {
1131 return String.valueOf(this.getEnumCaption6().length());
1132 }else {
1133 return "0";
1134 }
1135 }
1136 return enumCaption6Length;
1137 }
1138
1139 public void setEnumCaption6Length(String enumCaption6Length) {
1140 this.enumCaption6Length = enumCaption6Length;
1141 }
1142
1143 public String getChronCaption1Length() {
1144 if(StringUtils.isBlank(chronCaption1Length)) {
1145 if(this.getChronCaption1() != null) {
1146 return String.valueOf(this.getChronCaption1().length());
1147 }else {
1148 return "0";
1149 }
1150 }
1151 return chronCaption1Length;
1152 }
1153
1154 public void setChronCaption1Length(String chronCaption1Length) {
1155 this.chronCaption1Length = chronCaption1Length;
1156 }
1157
1158 public String getChronCaption2Length() {
1159 if(StringUtils.isBlank(chronCaption2Length)) {
1160 if(this.getChronCaption2() != null) {
1161 return String.valueOf(this.getChronCaption2().length());
1162 }else {
1163 return "0";
1164 }
1165 }
1166 return chronCaption2Length;
1167 }
1168
1169 public void setChronCaption2Length(String chronCaption2Length) {
1170 this.chronCaption2Length = chronCaption2Length;
1171 }
1172
1173 public String getChronCaption3Length() {
1174 if(StringUtils.isBlank(chronCaption3Length)) {
1175 if(this.getChronCaption3() != null) {
1176 return String.valueOf(this.getChronCaption3().length());
1177 }else {
1178 return "0";
1179 }
1180 }
1181 return chronCaption3Length;
1182 }
1183
1184 public void setChronCaption3Length(String chronCaption3Length) {
1185 this.chronCaption3Length = chronCaption3Length;
1186 }
1187
1188 public String getChronCaption4Length() {
1189 if(StringUtils.isBlank(chronCaption4Length)) {
1190 if(this.getChronCaption4() != null) {
1191 return String.valueOf(this.getChronCaption4().length());
1192 }else {
1193 return "0";
1194 }
1195 }
1196 return chronCaption4Length;
1197 }
1198
1199 public void setChronCaption4Length(String chronCaption4Length) {
1200 this.chronCaption4Length = chronCaption4Length;
1201 }
1202
1203 @Override
1204 public void doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) {
1205 LOG.debug("doRouteStatusChange() starting");
1206 super.doRouteStatusChange(statusChangeEvent);
1207
1208 try {
1209 if (this.getDocumentHeader().getWorkflowDocument().isFinal() || this.getDocumentHeader().getWorkflowDocument().isDisapproved()) {
1210 this.setActive(false);
1211 }
1212 } catch (Exception e) {
1213 LOG.error("Error saving routing data while saving document with id " + getDocumentNumber(), e);
1214 }
1215 LOG.debug("doRouteStatusChange() ending");
1216 }
1217
1218
1219 public String getClaimType() {
1220 return claimType;
1221 }
1222
1223 public void setClaimType(String claimType) {
1224 this.claimType = claimType;
1225 }
1226
1227 public boolean isValidRecordType() {
1228 return validRecordType;
1229 }
1230
1231 public void setValidRecordType(boolean validRecordType) {
1232 this.validRecordType = validRecordType;
1233 }
1234
1235 public boolean isValidChildRecordType() {
1236 return validChildRecordType;
1237 }
1238
1239 public void setValidChildRecordType(boolean validChildRecordType) {
1240 this.validChildRecordType = validChildRecordType;
1241 }
1242
1243 public boolean isValidChildHistoryRecordType() {
1244 return validChildHistoryRecordType;
1245 }
1246
1247 public void setValidChildHistoryRecordType(boolean validChildHistoryRecordType) {
1248 this.validChildHistoryRecordType = validChildHistoryRecordType;
1249 }
1250
1251 public String formPoIdLinkUsingPoDocumentNumber(String poDocNumber){
1252 String documentTypeName = PurapConstants.PurchaseOrderDocTypes.PURCHASE_ORDER_DOCUMENT;
1253 DocumentType docType = KewApiServiceLocator.getDocumentTypeService().getDocumentTypeByName(documentTypeName);
1254 String docHandlerUrl = docType.getResolvedDocumentHandlerUrl();
1255 int endSubString = docHandlerUrl.lastIndexOf("/");
1256 String serverName = docHandlerUrl.substring(0, endSubString);
1257 String handler = docHandlerUrl.substring(endSubString + 1, docHandlerUrl.lastIndexOf("?"));
1258 return serverName + "/" + KRADConstants.PORTAL_ACTION + "?channelTitle=" + docType.getName() + "&channelUrl=" + handler + "?" + KRADConstants.DISPATCH_REQUEST_PARAMETER + "=" + KRADConstants.DOC_HANDLER_METHOD + "&" + KRADConstants.PARAMETER_DOC_ID + "=" + poDocNumber + "&" + KRADConstants.PARAMETER_COMMAND + "=" + KewApiConstants.DOCSEARCH_COMMAND;
1259 }
1260 }