View Javadoc
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   * Created with IntelliJ IDEA.
19   * User: vivekb
20   * Date: 6/26/13
21   * Time: 3:56 PM
22   * To change this template use File | Settings | File Templates.
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 poDocNumber) {
399         String documentTypeName = PurapConstants.PurchaseOrderDocTypes.PURCHASE_ORDER_DOCUMENT;
400         DocumentType docType = KewApiServiceLocator.getDocumentTypeService().getDocumentTypeByName(documentTypeName);
401         String docHandlerUrl = docType.getResolvedDocumentHandlerUrl();
402         int endSubString = docHandlerUrl.lastIndexOf("/");
403         String serverName = docHandlerUrl.substring(0, endSubString);
404         String handler = docHandlerUrl.substring(endSubString + 1, docHandlerUrl.lastIndexOf("?"));
405         this.poIdLink = 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;
406     }
407 
408     public List<OLESerialReceivingHistory> getMainSerialReceivingHistoryList() {
409         return mainSerialReceivingHistoryList;
410     }
411 
412     public void setMainSerialReceivingHistoryList(List<OLESerialReceivingHistory> mainSerialReceivingHistoryList) {
413         this.mainSerialReceivingHistoryList = mainSerialReceivingHistoryList;
414     }
415 
416     public List<OLESerialReceivingHistory> getSupplementSerialReceivingHistoryList() {
417         return supplementSerialReceivingHistoryList;
418     }
419 
420     public void setSupplementSerialReceivingHistoryList(List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList) {
421         this.supplementSerialReceivingHistoryList = supplementSerialReceivingHistoryList;
422     }
423 
424     public List<OLESerialReceivingHistory> getIndexSerialReceivingHistoryList() {
425         return indexSerialReceivingHistoryList;
426     }
427 
428     public void setIndexSerialReceivingHistoryList(List<OLESerialReceivingHistory> indexSerialReceivingHistoryList) {
429         this.indexSerialReceivingHistoryList = indexSerialReceivingHistoryList;
430     }
431 
432     public String getChronCaption1() {
433         return chronCaption1;
434     }
435 
436     public void setChronCaption1(String chronCaption1) {
437         this.chronCaption1 = chronCaption1;
438     }
439 
440     public String getChronCaption2() {
441         return chronCaption2;
442     }
443 
444     public void setChronCaption2(String chronCaption2) {
445         this.chronCaption2 = chronCaption2;
446     }
447 
448     public String getChronCaption3() {
449         return chronCaption3;
450     }
451 
452     public void setChronCaption3(String chronCaption3) {
453         this.chronCaption3 = chronCaption3;
454     }
455 
456     public String getChronCaption4() {
457         return chronCaption4;
458     }
459 
460     public void setChronCaption4(String chronCaption4) {
461         this.chronCaption4 = chronCaption4;
462     }
463 
464     public String getChronLevel1() {
465         return chronLevel1;
466     }
467 
468     public void setChronLevel1(String chronLevel1) {
469         this.chronLevel1 = chronLevel1;
470     }
471 
472     public String getChronLevel2() {
473         return chronLevel2;
474     }
475 
476     public void setChronLevel2(String chronLevel2) {
477         this.chronLevel2 = chronLevel2;
478     }
479 
480     public String getChronLevel3() {
481         return chronLevel3;
482     }
483 
484     public void setChronLevel3(String chronLevel3) {
485         this.chronLevel3 = chronLevel3;
486     }
487 
488     public String getChronLevel4() {
489         return chronLevel4;
490     }
491 
492     public void setChronLevel4(String chronLevel4) {
493         this.chronLevel4 = chronLevel4;
494     }
495 
496     public String getUrgentDialogNote() {
497         return urgentDialogNote;
498     }
499 
500     public void setUrgentDialogNote(String urgentDialogNote) {
501         this.urgentDialogNote = urgentDialogNote;
502     }
503 
504     public boolean isUrgentNoteFlag() {
505         return urgentNoteFlag;
506     }
507 
508     public void setUrgentNoteFlag(boolean urgentNoteFlag) {
509         this.urgentNoteFlag = urgentNoteFlag;
510     }
511 
512     public String getConfirmMessage() {
513         return confirmMessage;
514     }
515 
516     public void setConfirmMessage(String confirmMessage) {
517         this.confirmMessage = confirmMessage;
518     }
519 
520     public boolean isReturnToSearch() {
521         return returnToSearch;
522     }
523 
524     public void setReturnToSearch(boolean returnToSearch) {
525         this.returnToSearch = returnToSearch;
526     }
527 
528     public String getSerialReceiptHistoryId() {
529         return serialReceiptHistoryId;
530     }
531 
532     public void setSerialReceiptHistoryId(String serialReceiptHistoryId) {
533         this.serialReceiptHistoryId = serialReceiptHistoryId;
534     }
535 
536     public OLESerialReceivingForm form;
537 
538     public OLESerialReceivingForm getForm() {
539         return form;
540     }
541 
542     public void setForm(OLESerialReceivingForm form) {
543         this.form = form;
544     }
545 
546     public String getSerialReceivingRecordId() {
547         return serialReceivingRecordId;
548     }
549 
550     public void setSerialReceivingRecordId(String serialReceivingRecordId) {
551         this.serialReceivingRecordId = serialReceivingRecordId;
552     }
553 
554     public Date getActionDate() {
555         return actionDate;
556     }
557 
558     public void setActionDate(Date actionDate) {
559         this.actionDate = actionDate;
560     }
561 
562     public String getActionInterval() {
563         return actionInterval;
564     }
565 
566     public void setActionInterval(String actionInterval) {
567         this.actionInterval = actionInterval;
568     }
569 
570     public String getBibId() {
571         return bibId;
572     }
573 
574     public void setBibId(String bibId) {
575         this.bibId = bibId;
576     }
577 
578     public String getBoundLocation() {
579         return boundLocation;
580     }
581 
582     public void setBoundLocation(String boundLocation) {
583         this.boundLocation = boundLocation;
584     }
585 
586     public String getCallNumber() {
587         return callNumber;
588     }
589 
590     public void setCallNumber(String callNumber) {
591         this.callNumber = callNumber;
592     }
593 
594     public String getReceivingRecordType() {
595         return receivingRecordType;
596     }
597 
598     public void setReceivingRecordType(String receivingRecordType) {
599         this.receivingRecordType = receivingRecordType;
600     }
601 
602     public String getChronologyCaptionLevel1() {
603         return chronologyCaptionLevel1;
604     }
605 
606     public void setChronologyCaptionLevel1(String chronologyCaptionLevel1) {
607         this.chronologyCaptionLevel1 = chronologyCaptionLevel1;
608     }
609 
610     public String getChronologyCaptionLevel2() {
611         return chronologyCaptionLevel2;
612     }
613 
614     public void setChronologyCaptionLevel2(String chronologyCaptionLevel2) {
615         this.chronologyCaptionLevel2 = chronologyCaptionLevel2;
616     }
617 
618     public String getChronologyCaptionLevel3() {
619         return chronologyCaptionLevel3;
620     }
621 
622     public void setChronologyCaptionLevel3(String chronologyCaptionLevel3) {
623         this.chronologyCaptionLevel3 = chronologyCaptionLevel3;
624     }
625 
626     public String getChronologyCaptionLevel4() {
627         return chronologyCaptionLevel4;
628     }
629 
630     public void setChronologyCaptionLevel4(String chronologyCaptionLevel4) {
631         this.chronologyCaptionLevel4 = chronologyCaptionLevel4;
632     }
633 
634     public boolean isClaim() {
635         return claim;
636     }
637 
638     public void setClaim(boolean claim) {
639         this.claim = claim;
640     }
641 
642     public String getClaimIntervalInformation() {
643         return claimIntervalInformation;
644     }
645 
646     public void setClaimIntervalInformation(String claimIntervalInformation) {
647         this.claimIntervalInformation = claimIntervalInformation;
648     }
649 
650     public String getCopyNumber() {
651         return copyNumber;
652     }
653 
654     public void setCopyNumber(String copyNumber) {
655         this.copyNumber = copyNumber;
656     }
657 
658     public String getCorporateAuthor() {
659         return corporateAuthor;
660     }
661 
662     public void setCorporateAuthor(String corporateAuthor) {
663         this.corporateAuthor = corporateAuthor;
664     }
665 
666     public boolean isCreateItem() {
667         return createItem;
668     }
669 
670     public void setCreateItem(boolean createItem) {
671         this.createItem = createItem;
672     }
673 
674     public String getEnumerationCaptionLevel1() {
675         return enumerationCaptionLevel1;
676     }
677 
678     public void setEnumerationCaptionLevel1(String enumerationCaptionLevel1) {
679         this.enumerationCaptionLevel1 = enumerationCaptionLevel1;
680     }
681 
682     public String getEnumerationCaptionLevel2() {
683         return enumerationCaptionLevel2;
684     }
685 
686     public void setEnumerationCaptionLevel2(String enumerationCaptionLevel2) {
687         this.enumerationCaptionLevel2 = enumerationCaptionLevel2;
688     }
689 
690     public String getEnumerationCaptionLevel3() {
691         return enumerationCaptionLevel3;
692     }
693 
694     public void setEnumerationCaptionLevel3(String enumerationCaptionLevel3) {
695         this.enumerationCaptionLevel3 = enumerationCaptionLevel3;
696     }
697 
698     public boolean isPublicDisplay() {
699         return publicDisplay;
700     }
701 
702     public void setPublicDisplay(boolean publicDisplay) {
703         this.publicDisplay = publicDisplay;
704     }
705 
706     public String getEnumerationCaptionLevel4() {
707         return enumerationCaptionLevel4;
708     }
709 
710     public void setEnumerationCaptionLevel4(String enumerationCaptionLevel4) {
711         this.enumerationCaptionLevel4 = enumerationCaptionLevel4;
712     }
713 
714     public String getEnumerationCaptionLevel5() {
715         return enumerationCaptionLevel5;
716     }
717 
718     public void setEnumerationCaptionLevel5(String enumerationCaptionLevel5) {
719         this.enumerationCaptionLevel5 = enumerationCaptionLevel5;
720     }
721 
722     public String getEnumerationCaptionLevel6() {
723         return enumerationCaptionLevel6;
724     }
725 
726     public void setEnumerationCaptionLevel6(String enumerationCaptionLevel6) {
727         this.enumerationCaptionLevel6 = enumerationCaptionLevel6;
728     }
729 
730     public String getGeneralReceivingNote() {
731         return generalReceivingNote;
732     }
733 
734     public void setGeneralReceivingNote(String generalReceivingNote) {
735         this.generalReceivingNote = generalReceivingNote;
736     }
737 
738     public String getInstanceId() {
739         return instanceId;
740     }
741 
742     public void setInstanceId(String instanceId) {
743         this.instanceId = instanceId;
744     }
745 
746     public String getIssn() {
747         return issn;
748     }
749 
750     public void setIssn(String issn) {
751         this.issn = issn;
752     }
753 
754     public String getPoId() {
755         return poId;
756     }
757 
758     public void setPoId(String poId) {
759         this.poId = poId;
760     }
761 
762     public boolean isPrintLabel() {
763         return printLabel;
764     }
765 
766     public void setPrintLabel(boolean printLabel) {
767         this.printLabel = printLabel;
768     }
769 
770     public String getPublisher() {
771         return publisher;
772     }
773 
774     public void setPublisher(String publisher) {
775         this.publisher = publisher;
776     }
777 
778     public String getSerialReceiptLocation() {
779         return serialReceiptLocation;
780     }
781 
782     public void setSerialReceiptLocation(String serialReceiptLocation) {
783         this.serialReceiptLocation = serialReceiptLocation;
784     }
785 
786     public String getSerialReceivingRecord() {
787         return serialReceivingRecord;
788     }
789 
790     public void setSerialReceivingRecord(String serialReceivingRecord) {
791         this.serialReceivingRecord = serialReceivingRecord;
792     }
793 
794     public String getSubscriptionStatus() {
795         return subscriptionStatus;
796     }
797 
798     public void setSubscriptionStatus(String subscriptionStatus) {
799         this.subscriptionStatus = subscriptionStatus;
800     }
801 
802     public String getTitle() {
803         return title;
804     }
805 
806     public void setTitle(String title) {
807         this.title = title;
808     }
809 
810     public String getTreatmentInstructionNote() {
811         return treatmentInstructionNote;
812     }
813 
814     public void setTreatmentInstructionNote(String treatmentInstructionNote) {
815         this.treatmentInstructionNote = treatmentInstructionNote;
816     }
817 
818     public String getUnboundLocation() {
819         return unboundLocation;
820     }
821 
822     public void setUnboundLocation(String unboundLocation) {
823         this.unboundLocation = unboundLocation;
824     }
825 
826     public String getUrgentNote() {
827         return urgentNote;
828     }
829 
830     public String getLocalId() {
831         return localId;
832     }
833 
834     public void setLocalId(String localId) {
835         this.localId = localId;
836     }
837 
838     public void setUrgentNote(String urgentNote) {
839         this.urgentNote = urgentNote;
840     }
841 
842     public String getVendorId() {
843         return vendorId;
844     }
845 
846     public void setVendorId(String vendorId) {
847         this.vendorId = vendorId;
848     }
849 
850     public Timestamp getCreateDate() {
851         return createDate;
852     }
853 
854     public void setCreateDate(Timestamp createDate) {
855         this.createDate = createDate;
856     }
857 
858     public String getOperatorId() {
859         return operatorId;
860     }
861 
862     public void setOperatorId(String operatorId) {
863         this.operatorId = operatorId;
864     }
865 
866     public String getMachineId() {
867         return machineId;
868     }
869 
870     public void setMachineId(String machineId) {
871         this.machineId = machineId;
872     }
873 
874     public Timestamp getSubscriptionStatusDate() {
875         return subscriptionStatusDate;
876     }
877 
878     public void setSubscriptionStatusDate(Timestamp subscriptionStatusDate) {
879         this.subscriptionStatusDate = subscriptionStatusDate;
880     }
881 
882     public List<OLESerialReceivingHistory> getOleSerialReceivingHistoryList() {
883         return oleSerialReceivingHistoryList;
884     }
885 
886     public void setOleSerialReceivingHistoryList(List<OLESerialReceivingHistory> oleSerialReceivingHistoryList) {
887         this.oleSerialReceivingHistoryList = oleSerialReceivingHistoryList;
888     }
889 
890     public boolean isSpecialIssueFlag() {
891         return specialIssueFlag;
892     }
893 
894     public void setSpecialIssueFlag(boolean specialIssueFlag) {
895         this.specialIssueFlag = specialIssueFlag;
896     }
897 
898     public String getSpecialIssueNote() {
899         return specialIssueNote;
900     }
901 
902     public void setSpecialIssueNote(String specialIssueNote) {
903         this.specialIssueNote = specialIssueNote;
904     }
905 
906     public boolean isTreatmentNoteFlag() {
907         return treatmentNoteFlag;
908     }
909 
910     public void setTreatmentNoteFlag(boolean treatmentNoteFlag) {
911         this.treatmentNoteFlag = treatmentNoteFlag;
912     }
913 
914     public String getTreatmentDialogNote() {
915         return treatmentDialogNote;
916     }
917 
918     public void setTreatmentDialogNote(String treatmentDialogNote) {
919         this.treatmentDialogNote = treatmentDialogNote;
920     }
921 
922 
923     public boolean isActive() {
924         return active;
925     }
926 
927     public void setActive(boolean active) {
928         this.active = active;
929     }
930 
931     public String getItemUUID() {
932         return itemUUID;
933     }
934 
935     public void setItemUUID(String itemUUID) {
936         this.itemUUID = itemUUID;
937     }
938 
939     public String getEnumCaption1() {
940         return enumCaption1;
941     }
942 
943     public void setEnumCaption1(String enumCaption1) {
944         this.enumCaption1 = enumCaption1;
945     }
946 
947     public String getEnumCaption2() {
948         return enumCaption2;
949     }
950 
951     public void setEnumCaption2(String enumCaption2) {
952         this.enumCaption2 = enumCaption2;
953     }
954 
955     public String getEnumCaption3() {
956         return enumCaption3;
957     }
958 
959     public void setEnumCaption3(String enumCaption3) {
960         this.enumCaption3 = enumCaption3;
961     }
962 
963     public String getEnumCaption4() {
964         return enumCaption4;
965     }
966 
967     public void setEnumCaption4(String enumCaption4) {
968         this.enumCaption4 = enumCaption4;
969     }
970 
971     public String getEnumCaption5() {
972         return enumCaption5;
973     }
974 
975     public void setEnumCaption5(String enumCaption5) {
976         this.enumCaption5 = enumCaption5;
977     }
978 
979     public String getEnumCaption6() {
980         return enumCaption6;
981     }
982 
983     public void setEnumCaption6(String enumCaption6) {
984         this.enumCaption6 = enumCaption6;
985     }
986 
987     public String getEnumLevel1() {
988         return enumLevel1;
989     }
990 
991     public void setEnumLevel1(String enumLevel1) {
992         this.enumLevel1 = enumLevel1;
993     }
994 
995     public String getEnumLevel2() {
996         return enumLevel2;
997     }
998 
999     public void setEnumLevel2(String enumLevel2) {
1000         this.enumLevel2 = enumLevel2;
1001     }
1002 
1003     public String getEnumLevel3() {
1004         return enumLevel3;
1005     }
1006 
1007     public void setEnumLevel3(String enumLevel3) {
1008         this.enumLevel3 = enumLevel3;
1009     }
1010 
1011     public String getEnumLevel4() {
1012         return enumLevel4;
1013     }
1014 
1015     public void setEnumLevel4(String enumLevel4) {
1016         this.enumLevel4 = enumLevel4;
1017     }
1018 
1019     public String getEnumLevel5() {
1020         return enumLevel5;
1021     }
1022 
1023     public void setEnumLevel5(String enumLevel5) {
1024         this.enumLevel5 = enumLevel5;
1025     }
1026 
1027     public String getEnumLevel6() {
1028         return enumLevel6;
1029     }
1030 
1031     public void setEnumLevel6(String enumLevel6) {
1032         this.enumLevel6 = enumLevel6;
1033     }
1034 
1035     public String getVendorAliasName() {
1036         return vendorAliasName;
1037     }
1038 
1039     public void setVendorAliasName(String vendorAliasName) {
1040         this.vendorAliasName = vendorAliasName;
1041     }
1042 
1043     public String getVendorName() {
1044         return vendorName;
1045     }
1046 
1047     public void setVendorName(String vendorName) {
1048         this.vendorName = vendorName;
1049     }
1050 
1051     public String getSearchLimit() {
1052         return searchLimit;
1053     }
1054 
1055     public void setSearchLimit(String searchLimit) {
1056         this.searchLimit = searchLimit;
1057     }
1058 
1059     public String getEnumCaption1Length() {
1060         if(StringUtils.isBlank(enumCaption1Length)) {
1061             if(this.getEnumCaption1() != null) {
1062                 return String.valueOf(this.getEnumCaption1().length());
1063             }else {
1064                 return "0";
1065             }
1066         }
1067         return enumCaption1Length;
1068     }
1069 
1070     public void setEnumCaption1Length(String enumCaption1Length) {
1071         this.enumCaption1Length = enumCaption1Length;
1072     }
1073 
1074     public String getEnumCaption2Length() {
1075         if(StringUtils.isBlank(enumCaption2Length)) {
1076             if(this.getEnumCaption2() != null) {
1077                 return String.valueOf(this.getEnumCaption2().length());
1078             }else {
1079                 return "0";
1080             }
1081         }
1082         return enumCaption2Length;
1083     }
1084 
1085     public void setEnumCaption2Length(String enumCaption2Length) {
1086         this.enumCaption2Length = enumCaption2Length;
1087     }
1088 
1089     public String getEnumCaption3Length() {
1090         if(StringUtils.isBlank(enumCaption3Length)) {
1091             if(this.getEnumCaption3() != null) {
1092                 return String.valueOf(this.getEnumCaption3().length());
1093             }else {
1094                 return "0";
1095             }
1096         }
1097         return enumCaption3Length;
1098     }
1099 
1100     public void setEnumCaption3Length(String enumCaption3Length) {
1101         this.enumCaption3Length = enumCaption3Length;
1102     }
1103 
1104     public String getEnumCaption4Length() {
1105         if(StringUtils.isBlank(enumCaption4Length)) {
1106             if(this.getEnumCaption4() != null) {
1107                 return String.valueOf(this.getEnumCaption4().length());
1108             }else {
1109                 return "0";
1110             }
1111         }
1112         return enumCaption4Length;
1113     }
1114 
1115     public void setEnumCaption4Length(String enumCaption4Length) {
1116         this.enumCaption4Length = enumCaption4Length;
1117     }
1118 
1119     public String getEnumCaption5Length() {
1120         if(StringUtils.isBlank(enumCaption5Length)) {
1121             if(this.getEnumCaption5() != null) {
1122                 return String.valueOf(this.getEnumCaption5().length());
1123             }else {
1124                 return "0";
1125             }
1126         }
1127         return enumCaption5Length;
1128     }
1129 
1130     public void setEnumCaption5Length(String enumCaption5Length) {
1131         this.enumCaption5Length = enumCaption5Length;
1132     }
1133 
1134     public String getEnumCaption6Length() {
1135         if(StringUtils.isBlank(enumCaption6Length)) {
1136             if(this.getEnumCaption6() != null) {
1137                 return String.valueOf(this.getEnumCaption6().length());
1138             }else {
1139                 return "0";
1140             }
1141         }
1142         return enumCaption6Length;
1143     }
1144 
1145     public void setEnumCaption6Length(String enumCaption6Length) {
1146         this.enumCaption6Length = enumCaption6Length;
1147     }
1148 
1149     public String getChronCaption1Length() {
1150         if(StringUtils.isBlank(chronCaption1Length)) {
1151             if(this.getChronCaption1() != null) {
1152                 return String.valueOf(this.getChronCaption1().length());
1153             }else {
1154                 return "0";
1155             }
1156         }
1157         return chronCaption1Length;
1158     }
1159 
1160     public void setChronCaption1Length(String chronCaption1Length) {
1161         this.chronCaption1Length = chronCaption1Length;
1162     }
1163 
1164     public String getChronCaption2Length() {
1165         if(StringUtils.isBlank(chronCaption2Length)) {
1166             if(this.getChronCaption2() != null) {
1167                 return String.valueOf(this.getChronCaption2().length());
1168             }else {
1169                 return "0";
1170             }
1171         }
1172         return chronCaption2Length;
1173     }
1174 
1175     public void setChronCaption2Length(String chronCaption2Length) {
1176         this.chronCaption2Length = chronCaption2Length;
1177     }
1178 
1179     public String getChronCaption3Length() {
1180         if(StringUtils.isBlank(chronCaption3Length)) {
1181             if(this.getChronCaption3() != null) {
1182                 return String.valueOf(this.getChronCaption3().length());
1183             }else {
1184                 return "0";
1185             }
1186         }
1187         return chronCaption3Length;
1188     }
1189 
1190     public void setChronCaption3Length(String chronCaption3Length) {
1191         this.chronCaption3Length = chronCaption3Length;
1192     }
1193 
1194     public String getChronCaption4Length() {
1195         if(StringUtils.isBlank(chronCaption4Length)) {
1196             if(this.getChronCaption4() != null) {
1197                 return String.valueOf(this.getChronCaption4().length());
1198             }else {
1199                 return "0";
1200             }
1201         }
1202         return chronCaption4Length;
1203     }
1204 
1205     public void setChronCaption4Length(String chronCaption4Length) {
1206         this.chronCaption4Length = chronCaption4Length;
1207     }
1208 
1209     @Override
1210     public void doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) {
1211         LOG.debug("doRouteStatusChange() starting");
1212         super.doRouteStatusChange(statusChangeEvent);
1213 
1214         try {
1215             if (this.getDocumentHeader().getWorkflowDocument().isFinal() || this.getDocumentHeader().getWorkflowDocument().isDisapproved()) {
1216                 this.setActive(false);
1217             }
1218         } catch (Exception e) {
1219             LOG.error("Error saving routing data while saving document with id " + getDocumentNumber(), e);
1220         }
1221         LOG.debug("doRouteStatusChange() ending");
1222     }
1223 
1224 
1225     public String getClaimType() {
1226         return claimType;
1227     }
1228 
1229     public void setClaimType(String claimType) {
1230         this.claimType = claimType;
1231     }
1232 
1233     public boolean isValidRecordType() {
1234         return validRecordType;
1235     }
1236 
1237     public void setValidRecordType(boolean validRecordType) {
1238         this.validRecordType = validRecordType;
1239     }
1240 
1241     public boolean isValidChildRecordType() {
1242         return validChildRecordType;
1243     }
1244 
1245     public void setValidChildRecordType(boolean validChildRecordType) {
1246         this.validChildRecordType = validChildRecordType;
1247     }
1248 
1249     public boolean isValidChildHistoryRecordType() {
1250         return validChildHistoryRecordType;
1251     }
1252 
1253     public void setValidChildHistoryRecordType(boolean validChildHistoryRecordType) {
1254         this.validChildHistoryRecordType = validChildHistoryRecordType;
1255     }
1256 }