1 package org.kuali.ole.select.document;
2
3 import org.joda.time.DateTime;
4 import org.kuali.ole.OLEConstants;
5 import org.kuali.ole.alert.document.OleTransactionalDocumentBase;
6 import org.kuali.ole.describe.bo.OleStatisticalSearchingCodes;
7 import org.kuali.ole.docstore.common.client.DocstoreClientLocator;
8 import org.kuali.ole.docstore.common.document.EHoldings;
9 import org.kuali.ole.docstore.common.document.Holdings;
10 import org.kuali.ole.docstore.common.document.content.instance.Link;
11 import org.kuali.ole.docstore.common.document.content.instance.OleHoldings;
12 import org.kuali.ole.docstore.common.document.content.instance.xstream.HoldingOlemlRecordProcessor;
13 import org.kuali.ole.module.purap.businessobject.PurchaseOrderType;
14 import org.kuali.ole.select.bo.*;
15 import org.kuali.ole.select.businessobject.OleCopy;
16 import org.kuali.ole.select.form.OLEEResourceRecordForm;
17 import org.kuali.ole.service.OLEEResourceHelperService;
18 import org.kuali.ole.service.OLEEResourceSearchService;
19 import org.kuali.ole.sys.context.SpringContext;
20 import org.kuali.ole.vnd.businessobject.VendorDetail;
21 import org.kuali.rice.core.api.config.property.ConfigContext;
22 import org.kuali.rice.core.api.datetime.DateTimeService;
23 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
24 import org.kuali.rice.coreservice.api.CoreServiceApiServiceLocator;
25 import org.kuali.rice.coreservice.api.parameter.Parameter;
26 import org.kuali.rice.coreservice.api.parameter.ParameterKey;
27 import org.kuali.rice.kew.api.document.attribute.DocumentAttribute;
28 import org.kuali.rice.kew.api.document.search.DocumentSearchResult;
29 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
30 import org.kuali.rice.krad.document.TransactionalDocumentBase;
31 import org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent;
32 import org.kuali.rice.krad.service.BusinessObjectService;
33 import org.kuali.rice.krad.service.KRADServiceLocator;
34 import org.kuali.rice.krad.util.GlobalVariables;
35 import org.apache.commons.lang.StringUtils;
36
37 import javax.servlet.http.HttpSession;
38 import java.lang.reflect.Method;
39 import java.math.BigDecimal;
40 import java.sql.Date;
41 import java.sql.Timestamp;
42 import java.text.ParseException;
43 import java.util.*;
44
45
46
47
48
49
50
51
52 public class OLEEResourceRecordDocument extends OleTransactionalDocumentBase {
53
54 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OLEEResourceRecordDocument.class);
55 private BusinessObjectService boService;
56 private OLEEResourceSearchService oleEResourceSearchService = null;
57 private OLEEResourceHelperService oleeResourceHelperService = null;
58 private String accessDescription;
59 private String oleERSIdentifier;
60 private String title;
61 private String oldTitle;
62 private String description;
63 private String publisher;
64 private String publisherId;
65 private boolean activePublisher;
66 private Integer gokbIdentifier;
67 private String isbn;
68 private String ISBN;
69 private String oclc;
70 private String platformProvider;
71 private String statusId;
72 private String statusName;
73 private String statusDate;
74 private String fundCode;
75 private String fundId;
76
77
78 private String vendorName;
79 private String vendorId;
80 private String vendorLink;
81 private boolean activeVendor;
82 private String estimatedPrice;
83 private BigDecimal orderTypeId;
84 private String paymentTypeId;
85 private String packageTypeId;
86 private String packageScopeId;
87 private boolean breakable;
88 private boolean fixedTitleList;
89 private String noteId;
90 private String publicDisplayNote;
91 private String reqSelComment;
92 private String reqPriority;
93 private String techRequirements;
94 private String accessTypeId;
95 private String accessType;
96 private String accessStatus;
97 private String numOfSimultaneousUsers;
98 private String authenticationTypeId;
99 private String authenticationType;
100 private String accessLocationId;
101 private List<String> accessLocation = new ArrayList<>();
102 private List<String> accessLocationName = new ArrayList<>();
103 private boolean trialNeeded;
104 private String trialStatus;
105 private boolean licenseNeeded;
106 private String licenseReqStatus;
107 private String orderPayStatus;
108 private String activationStatus;
109 private boolean selectFlag;
110 private Integer statisticalSearchingCodeId;
111 private String statisticalSearchingCode;
112 private String selectInstance;
113 private String defaultCoverage;
114 private String defaultCoverageView;
115 private String defaultPerpetualAccess;
116 private String defaultPerpetualAccessView;
117 private OLEEResourceInstance oleERSInstance;
118 private boolean eInstanceFlag;
119 private String dummyDefaultCoverage;
120 private String dummyDefaultPerpetualAccess;
121 private boolean isCovEdited = false;
122 private boolean isPerAccEdited = false;
123 private String covStartDate;
124 private String covEndDate;
125 private String perAccStartDate;
126 private String perAccEndDate;
127 private String gokbId ;
128 private String subscriptionStatus;
129 private Timestamp currentSubscriptionStartDate;
130 private Timestamp currentSubscriptionEndDate;
131 private Timestamp initialSubscriptionStartDate;
132 private Timestamp cancellationDecisionDate;
133 private Timestamp cancellationEffectiveDate;
134 private String cancellationReason;
135 private boolean cancellationCandidate;
136 private boolean renewalAlertEnabled;
137 private String renewalNoticePeriod;
138 private String recipientId;
139 private String eresourceWorkflowIndication;
140 private String relationshipType;
141 private int activeTitlesCount;
142
143 private OLEAccessType oleAccessType;
144 private OLEPackageScope olePackageScope;
145 private OLEPackageType olePackageType;
146 private OLEPaymentType olePaymentType;
147 private OLERequestPriority oleRequestPriority;
148 private OLEAuthenticationType oleAuthenticationType;
149 private OleStatisticalSearchingCodes oleStatisticalCode;
150 private OLEEResourceStatus oleeResourceStatus;
151 private VendorDetail vendorDetail;
152 private PurchaseOrderType orderType;
153
154 private List<OLEMaterialTypeList> oleMaterialTypes = new ArrayList<OLEMaterialTypeList>();
155 private List<OLEContentTypes> oleContentTypes = new ArrayList<OLEContentTypes>();
156 private List<OLEFormatTypeList> oleFormatTypes = new ArrayList<OLEFormatTypeList>();
157 private List<OLEEResourceNotes> eresNotes = new ArrayList<OLEEResourceNotes>();
158 private List<OLEGOKbMappingValue> oleGOKbMappingValueList = new ArrayList<OLEGOKbMappingValue>();
159 private List<OLEPlatformAdminUrl> olePlatformAdminUrlList = new ArrayList<OLEPlatformAdminUrl>();
160 private List<OLEEResourceRequestor> requestors = new ArrayList<OLEEResourceRequestor>();
161 private List<OLEEResourceSelector> selectors = new ArrayList<OLEEResourceSelector>();
162 private List<OLEEResourceReqSelComments> reqSelComments = new ArrayList<OLEEResourceReqSelComments>();
163 private List<OLEEResourceVariantTitle> oleEResourceVariantTitleList = new ArrayList<OLEEResourceVariantTitle>();
164 private List<OLEEResourceEventLog> oleERSEventLogs = new ArrayList<OLEEResourceEventLog>();
165 private List<OLEEResourceEventLog> filterEventLogs = new ArrayList<>();
166 private List<OLEEResourceLicense> oleERSLicenseRequests = new ArrayList<OLEEResourceLicense>();
167 private List<OLEEResourceInstance> oleERSInstances = new ArrayList<OLEEResourceInstance>();
168 private List<OLEEResourceInstance> oleERSInstancesForSave = new ArrayList<>();
169 private List<OLEEResourceInstance> oleERSInstancesForDelete = new ArrayList<>();
170 private List<OLEEResourceInstance> eRSInstances = new ArrayList<OLEEResourceInstance>();
171 private List<OLEEResourceInstance> deletedInstances = new ArrayList<OLEEResourceInstance>();
172 private List<OLEEResourceInstance> purchaseOrderInstances = new ArrayList<OLEEResourceInstance>();
173 private List<OLEEResourceInvoices> oleERSInvoices = new ArrayList<>();
174 private List<OLEEResourceInvoices> eRSInvoices = new ArrayList<>();
175 private List<OLEEResourceContacts> oleERSContacts = new ArrayList<OLEEResourceContacts>();
176 private List<OLEEResourceChangeDashBoard> oleEResourceChangeDashBoards= new ArrayList<>();
177 private List<OLELinkedEresource> oleLinkedEresources= new ArrayList<>();
178 private List<OleCopy> copyList = new ArrayList<>();
179 private List<OLEEResourcePO> oleERSPOItems = new ArrayList<>();
180 private List<OLEEResourcePO> linkedERSPOItems = new ArrayList<>();
181 private List<OLEEResourceAccountingLine> accountingLines = new ArrayList<>();
182 private OLEEResourceRecordForm form;
183 private String status=null;
184 private String gokbconfig;
185 private String removeOrRelinkToParent;
186 private DocstoreClientLocator docstoreClientLocator;
187 private String phone;
188 private double fiscalYearCost;
189 private double yearPriceQuote;
190 private double costIncrease;
191 private double percentageIncrease;
192 private String emailText;
193 private Integer gokbPackageId;
194
195 private List<OLEPhoneNumber> phoneNos = new ArrayList<>();
196 public boolean selectEResFlag;
197 private List<OLEStandardIdentifier> standardIdentifiers = new ArrayList<>();
198 private List<OLEGOKbPackage> goKbPackageList = new ArrayList<>();
199 private List<OLEGOKbPlatform> goKbPlatformList = new ArrayList<>();
200 private List<OLEGOKbPlatform> goKbPlatforms = new ArrayList<>();
201 private List<OLEGOKbTIPP> goKbTIPPList = new ArrayList<>();
202 private String profile;
203 private String gokbProfile;
204 private String gokbPackageStatus = "";
205
206 private Timestamp dateAccessConfirmed;
207 private String accessUserName;
208 private String accessPassword;
209 private String proxiedURL;
210 private boolean proxiedResource;
211 private String mobileAccessId;
212 private List<String> mobileAccess = new ArrayList<>();
213 private String mobileAccessNote;
214 private boolean brandingComplete;
215 private boolean platformConfigComplete;
216 private String marcRecordSourceTypeId;
217 private Timestamp lastRecordLoadDate;
218 private String marcRecordSource;
219 private String marcRecordUpdateFreqId;
220 private String marcRecordURL;
221 private String marcRecordUserName;
222 private String marcRecordPasword;
223 private String marcRecordNote;
224 private List<OLEEResourceAccessWorkflow> oleERSAccessWorkflows = new ArrayList<>();
225 private DateTimeService dateTimeService;
226 private String lineActions;
227 private String bannerMessage;
228 private Timestamp gokbLastUpdatedDate;
229 private String workflowConfigurationId;
230 private String oleAccessActivationDocumentNumber;
231 private List<OLEGOKbPlatform> selectedGoKbPlatforms = new ArrayList<>();
232 private boolean accessReadOnly = false;
233
234 public List<OLEGOKbPlatform> getSelectedGoKbPlatforms() {
235 return selectedGoKbPlatforms;
236 }
237
238 private boolean singlePlatform=true;
239 private Integer singlePaltformId;
240 private String workflowStatus;
241
242 private String publisherLink;
243
244 private boolean saveValidationFlag;
245 private boolean accountingLineDisclosureFlag = false;
246
247 public String getWorkflowStatus() {
248 return workflowStatus;
249 }
250
251 public void setWorkflowStatus(String workflowStatus) {
252 this.workflowStatus = workflowStatus;
253 }
254
255 public boolean isSinglePlatform() {
256 return singlePlatform;
257 }
258
259 public void setSinglePlatform(boolean singlePlatform) {
260 this.singlePlatform = singlePlatform;
261 }
262
263 public Integer getSinglePaltformId() {
264 return singlePaltformId;
265 }
266
267 public void setSinglePaltformId(Integer singlePaltformId) {
268 this.singlePaltformId = singlePaltformId;
269 }
270
271 public void setSelectedGoKbPlatforms(List<OLEGOKbPlatform> selectedGoKbPlatforms) {
272 this.selectedGoKbPlatforms = selectedGoKbPlatforms;
273 }
274
275 public BusinessObjectService getBoService() {
276 if(null == boService){
277 boService = KRADServiceLocator.getBusinessObjectService();
278 }
279 return boService;
280 }
281
282 public Integer getGokbPackageId() {
283 return gokbPackageId;
284 }
285
286 public void setGokbPackageId(Integer gokbPackageId) {
287 this.gokbPackageId = gokbPackageId;
288 }
289
290 public void setBoService(BusinessObjectService boService) {
291 this.boService = boService;
292 }
293
294 public DateTimeService getDateTimeService() {
295 return (DateTimeService)SpringContext.getService("dateTimeService");
296 }
297
298 public DocstoreClientLocator getDocstoreClientLocator() {
299
300 if (docstoreClientLocator == null) {
301 docstoreClientLocator = SpringContext.getBean(DocstoreClientLocator.class);
302 }
303 return docstoreClientLocator;
304 }
305
306 public OLEEResourceHelperService getOleeResourceHelperService() {
307 if(oleeResourceHelperService == null) {
308 oleeResourceHelperService = new OLEEResourceHelperService();
309 }
310 return oleeResourceHelperService;
311 }
312
313
314 public OLEEResourceRecordDocument() {
315 getOleMaterialTypes().add(new OLEMaterialTypeList());
316 getOleFormatTypes().add(new OLEFormatTypeList());
317 getOleContentTypes().add(new OLEContentTypes());
318 getRequestors().add(new OLEEResourceRequestor());
319 getSelectors().add(new OLEEResourceSelector());
320 getReqSelComments().add(new OLEEResourceReqSelComments());
321 getOleEResourceVariantTitleList().add(new OLEEResourceVariantTitle());
322 getEresNotes().add(new OLEEResourceNotes());
323 getStandardIdentifiers().add(new OLEStandardIdentifier());
324 }
325
326
327
328
329
330
331
332
333 public List<OLEPlatformAdminUrl> getOlePlatformAdminUrlList() {
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410 return olePlatformAdminUrlList;
411 }
412
413 public final String getParameter(String parameterName) {
414 ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.SELECT_NMSPC, OLEConstants.SELECT_CMPNT, parameterName);
415 Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
416 return parameter != null ? parameter.getValue() : null;
417 }
418
419 public List<OLEEResourceVariantTitle> getOleEResourceVariantTitleList() {
420 return oleEResourceVariantTitleList;
421 }
422
423 public void setOleEResourceVariantTitleList(List<OLEEResourceVariantTitle> oleEResourceVariantTitleList) {
424 this.oleEResourceVariantTitleList = oleEResourceVariantTitleList;
425 }
426
427 public void setOlePlatformAdminUrlList(List<OLEPlatformAdminUrl> olePlatformAdminUrlList) {
428 this.olePlatformAdminUrlList = olePlatformAdminUrlList;
429 }
430
431 public String getEresourceWorkflowIndication() {
432 return eresourceWorkflowIndication;
433 }
434
435 public void setEresourceWorkflowIndication(String eresourceWorkflowIndication) {
436 this.eresourceWorkflowIndication = eresourceWorkflowIndication;
437 }
438
439 public String getStatusName() {
440 if (getStatusId() != null) {
441 oleeResourceStatus = getBoService().findBySinglePrimaryKey(OLEEResourceStatus.class, statusId);
442 statusName = oleeResourceStatus.getOleEResourceStatusName();
443 }
444 return statusName;
445 }
446
447 public OLEEResourceSearchService getOleEResourceSearchService() {
448 if (oleEResourceSearchService == null) {
449 oleEResourceSearchService = GlobalResourceLoader.getService(OLEConstants.OLEEResourceRecord.ERESOURSE_SEARCH_SERVICE);
450 }
451 return oleEResourceSearchService;
452 }
453
454
455
456 public String getRecipientId() {
457 return recipientId;
458 }
459
460 public void setRecipientId(String recipientId) {
461 this.recipientId = recipientId;
462 }
463
464 public String getAccessStatus() {
465 return accessStatus;
466 }
467
468 public void setAccessStatus(String accessStatus) {
469 this.accessStatus = accessStatus;
470 }
471
472 public Timestamp getCancellationDecisionDate() {
473 return cancellationDecisionDate;
474 }
475
476 public void setCancellationDecisionDate(Timestamp cancellationDecisionDate) {
477 this.cancellationDecisionDate = cancellationDecisionDate;
478 }
479
480 public Timestamp getCancellationEffectiveDate() {
481 return cancellationEffectiveDate;
482 }
483
484 public void setCancellationEffectiveDate(Timestamp cancellationEffectiveDate) {
485 this.cancellationEffectiveDate = cancellationEffectiveDate;
486 }
487
488 public String getCancellationReason() {
489 return cancellationReason;
490 }
491
492 public void setCancellationReason(String cancellationReason) {
493 this.cancellationReason = cancellationReason;
494 }
495
496 public boolean isCancellationCandidate() {
497 return cancellationCandidate;
498 }
499
500 public void setCancellationCandidate(boolean cancellationCandidate) {
501 this.cancellationCandidate = cancellationCandidate;
502 }
503
504 public boolean isRenewalAlertEnabled() {
505 return renewalAlertEnabled;
506 }
507
508 public void setRenewalAlertEnabled(boolean renewalAlertEnabled) {
509 this.renewalAlertEnabled = renewalAlertEnabled;
510 }
511
512 public String getRenewalNoticePeriod() {
513 return renewalNoticePeriod;
514 }
515
516 public void setRenewalNoticePeriod(String renewalNoticePeriod) {
517 this.renewalNoticePeriod = renewalNoticePeriod;
518 }
519
520 public String getSubscriptionStatus() {
521 return subscriptionStatus;
522 }
523
524 public void setSubscriptionStatus(String subscriptionStatus) {
525 this.subscriptionStatus = subscriptionStatus;
526 }
527
528 public Timestamp getCurrentSubscriptionStartDate() {
529 return currentSubscriptionStartDate;
530 }
531
532 public void setCurrentSubscriptionStartDate(Timestamp currentSubscriptionStartDate) {
533 this.currentSubscriptionStartDate = currentSubscriptionStartDate;
534 }
535
536 public Timestamp getCurrentSubscriptionEndDate() {
537 return currentSubscriptionEndDate;
538 }
539
540 public void setCurrentSubscriptionEndDate(Timestamp currentSubscriptionEndDate) {
541 this.currentSubscriptionEndDate = currentSubscriptionEndDate;
542 }
543
544 public Timestamp getInitialSubscriptionStartDate() {
545 return initialSubscriptionStartDate;
546 }
547
548 public void setInitialSubscriptionStartDate(Timestamp initialSubscriptionStartDate) {
549 this.initialSubscriptionStartDate = initialSubscriptionStartDate;
550 }
551
552 public void setStatusName(String statusName) {
553 this.statusName = statusName;
554 }
555
556 public OLEEResourceRecordForm getForm() {
557 return form;
558 }
559
560 public void setForm(OLEEResourceRecordForm form) {
561 this.form = form;
562 }
563
564 public String getOleERSIdentifier() {
565 return oleERSIdentifier;
566 }
567
568 public String getISBN() {
569 return ISBN;
570 }
571
572 public void setISBN(String ISBN) {
573 this.ISBN = ISBN;
574 }
575
576 public String getOclc() {
577 return oclc;
578 }
579
580 public void setOclc(String oclc) {
581 this.oclc = oclc;
582 }
583
584 public void setOleERSIdentifier(String oleERSIdentifier) {
585 this.oleERSIdentifier = oleERSIdentifier;
586 }
587
588 public String getVendorId() {
589 return vendorId;
590 }
591
592 public void setVendorId(String vendorId) {
593 this.vendorId = vendorId;
594 }
595
596 public String getVendorLink() {
597 if (StringUtils.isNotBlank(this.getVendorId())){
598 String[] vendorDetails = this.getVendorId().split("-");
599 Integer vendorHeaderGeneratedIdentifier = vendorDetails.length > 0 ? Integer.parseInt(vendorDetails[0]) : 0;
600 Integer vendorDetailAssignedIdentifier = vendorDetails.length > 1 ? Integer.parseInt(vendorDetails[1]) : 0;
601 String oleurl = ConfigContext.getCurrentContextConfig().getProperty("ole.url");
602 String url = oleurl + "/kr/inquiry.do?methodToCall=start&businessObjectClassName=org.kuali.ole.vnd.businessobject.VendorDetail&vendorHeaderGeneratedIdentifier=" + vendorHeaderGeneratedIdentifier + "&vendorDetailAssignedIdentifier="
603 + vendorDetailAssignedIdentifier;
604 return url;
605 }
606 return vendorLink;
607 }
608
609 public void setVendorLink(String vendorLink) {
610 this.vendorLink = vendorLink;
611 }
612
613 public boolean isActiveVendor() {
614 return activeVendor;
615 }
616
617 public void setActiveVendor(boolean activeVendor) {
618 this.activeVendor = activeVendor;
619 }
620
621 public String getStatisticalSearchingCode() {
622 return statisticalSearchingCode;
623 }
624
625 public void setStatisticalSearchingCode(String statisticalSearchingCode) {
626 this.statisticalSearchingCode = statisticalSearchingCode;
627 }
628
629 public Integer getStatisticalSearchingCodeId() {
630 return statisticalSearchingCodeId;
631 }
632
633 public void setStatisticalSearchingCodeId(Integer statisticalSearchingCodeId) {
634 this.statisticalSearchingCodeId = statisticalSearchingCodeId;
635 }
636
637 public String getTitle() {
638 return title;
639 }
640
641 public void setTitle(String title) {
642 this.title = title;
643 }
644
645 public String getDescription() {
646 return description;
647 }
648
649 public void setDescription(String description) {
650 this.description = description;
651 }
652
653 public String getPublisher() {
654 return publisher;
655 }
656
657 public void setPublisher(String publisher) {
658 this.publisher = publisher;
659 }
660
661 public String getPublisherId() {
662 return publisherId;
663 }
664
665 public void setPublisherId(String publisherId) {
666 this.publisherId = publisherId;
667 }
668
669 public boolean isActivePublisher() {
670 return activePublisher;
671 }
672
673 public void setActivePublisher(boolean activePublisher) {
674 this.activePublisher = activePublisher;
675 }
676
677 public Integer getGokbIdentifier() {
678 return gokbIdentifier;
679 }
680
681 public void setGokbIdentifier(Integer gokbIdentifier) {
682 this.gokbIdentifier = gokbIdentifier;
683 }
684
685 public void setGokbIdentifier(String gokbIdentifier) {
686 setGokbIdentifier(Integer.parseInt(gokbIdentifier));
687 }
688
689 public String getIsbn() {
690 return isbn;
691 }
692
693 public void setIsbn(String isbn) {
694 this.isbn = isbn;
695 }
696
697 public String getPlatformProvider() {
698 return platformProvider;
699 }
700
701 public void setPlatformProvider(String platformProvider) {
702 this.platformProvider = platformProvider;
703 }
704
705 public String getStatusId() {
706 return statusId;
707 }
708
709 public void setStatusId(String statusId) {
710 this.statusId = statusId;
711 }
712
713 public String getStatusDate() {
714 if (this.statusDate != null) {
715 return statusDate.substring(0, 10);
716 } else
717 return new Date(System.currentTimeMillis()).toString().substring(0, 10);
718 }
719
720 public void setStatusDate(String statusDate) {
721 this.statusDate = statusDate;
722 }
723
724 public String getFundCode() {
725 return fundCode;
726 }
727
728 public void setFundCode(String fundCode) {
729 this.fundCode = fundCode;
730 }
731
732 public String getFundId() {
733 return fundId;
734 }
735
736 public void setFundId(String fundId) {
737 this.fundId = fundId;
738 }
739
740 public String getEstimatedPrice() {
741 return estimatedPrice;
742 }
743
744 public void setEstimatedPrice(String estimatedPrice) {
745 this.estimatedPrice = estimatedPrice;
746 }
747
748 public BigDecimal getOrderTypeId() {
749 return orderTypeId;
750 }
751
752 public void setOrderTypeId(BigDecimal orderTypeId) {
753 this.orderTypeId = orderTypeId;
754 }
755
756 public String getPaymentTypeId() {
757 return paymentTypeId;
758 }
759
760 public void setPaymentTypeId(String paymentTypeId) {
761 this.paymentTypeId = paymentTypeId;
762 }
763
764 public String getPackageTypeId() {
765 return packageTypeId;
766 }
767
768 public void setPackageTypeId(String packageTypeId) {
769 this.packageTypeId = packageTypeId;
770 }
771
772 public String getPackageScopeId() {
773 return packageScopeId;
774 }
775
776 public void setPackageScopeId(String packageScopeId) {
777 this.packageScopeId = packageScopeId;
778 }
779
780 public boolean isBreakable() {
781 return breakable;
782 }
783
784 public void setBreakable(boolean breakable) {
785 this.breakable = breakable;
786 }
787
788 public boolean isFixedTitleList() {
789 return fixedTitleList;
790 }
791
792 public void setFixedTitleList(boolean fixedTitleList) {
793 this.fixedTitleList = fixedTitleList;
794 }
795
796 public String getNoteId() {
797 return noteId;
798 }
799
800 public void setNoteId(String noteId) {
801 this.noteId = noteId;
802 }
803
804 public String getPublicDisplayNote() {
805 return publicDisplayNote;
806 }
807
808 public void setPublicDisplayNote(String publicDisplayNote) {
809 this.publicDisplayNote = publicDisplayNote;
810 }
811
812 public String getReqSelComment() {
813 return reqSelComment;
814 }
815
816 public void setReqSelComment(String reqSelComment) {
817 this.reqSelComment = reqSelComment;
818 }
819
820 public String getReqPriority() {
821 return reqPriority;
822 }
823
824 public void setReqPriority(String reqPriority) {
825 this.reqPriority = reqPriority;
826 }
827
828 public String getTechRequirements() {
829 return techRequirements;
830 }
831
832 public void setTechRequirements(String techRequirements) {
833 this.techRequirements = techRequirements;
834 }
835
836 public String getAccessTypeId() {
837 return accessTypeId;
838 }
839
840 public void setAccessTypeId(String accessTypeId) {
841 this.accessTypeId = accessTypeId;
842 }
843
844 public String getAccessType() {
845 return accessType;
846 }
847
848 public void setAccessType(String accessType) {
849 this.accessType = accessType;
850 }
851
852 public String getNumOfSimultaneousUsers() {
853 return numOfSimultaneousUsers;
854 }
855
856 public void setNumOfSimultaneousUsers(String numOfSimultaneousUsers) {
857 this.numOfSimultaneousUsers = numOfSimultaneousUsers;
858 }
859
860 public String getAuthenticationTypeId() {
861 return authenticationTypeId;
862 }
863
864 public void setAuthenticationTypeId(String authenticationTypeId) {
865 this.authenticationTypeId = authenticationTypeId;
866 }
867
868 public String getAuthenticationType() {
869 return authenticationType;
870 }
871
872 public void setAuthenticationType(String authenticationType) {
873 this.authenticationType = authenticationType;
874 }
875
876 public String getAccessLocationId() {
877 return accessLocationId;
878 }
879
880 public void setAccessLocationId(String accessLocationId) {
881 this.accessLocationId = accessLocationId;
882 }
883
884 public List<String> getAccessLocation() {
885 return accessLocation;
886 }
887
888 public void setAccessLocation(List<String> accessLocation) {
889 this.accessLocation = accessLocation;
890 }
891
892 public List<String> getAccessLocationName() {
893 return accessLocationName;
894 }
895
896 public void setAccessLocationName(List<String> accessLocationName) {
897 this.accessLocationName = accessLocationName;
898 }
899
900 public boolean isTrialNeeded() {
901 return trialNeeded;
902 }
903
904 public void setTrialNeeded(boolean trialNeeded) {
905 this.trialNeeded = trialNeeded;
906 }
907
908 public String getTrialStatus() {
909 return trialStatus;
910 }
911
912 public void setTrialStatus(String trialStatus) {
913 this.trialStatus = trialStatus;
914 }
915
916 public boolean isLicenseNeeded() {
917 return licenseNeeded;
918 }
919
920 public void setLicenseNeeded(boolean licenseNeeded) {
921 this.licenseNeeded = licenseNeeded;
922 }
923
924 public String getLicenseReqStatus() {
925 return licenseReqStatus;
926 }
927
928 public void setLicenseReqStatus(String licenseReqStatus) {
929 this.licenseReqStatus = licenseReqStatus;
930 }
931
932 public String getOrderPayStatus() {
933 return orderPayStatus;
934 }
935
936 public void setOrderPayStatus(String orderPayStatus) {
937 this.orderPayStatus = orderPayStatus;
938 }
939
940 public String getActivationStatus() {
941 return activationStatus;
942 }
943
944 public void setActivationStatus(String activationStatus) {
945 this.activationStatus = activationStatus;
946 }
947
948 public OLEAccessType getOleAccessType() {
949 return oleAccessType;
950 }
951
952 public void setOleAccessType(OLEAccessType oleAccessType) {
953 this.oleAccessType = oleAccessType;
954 }
955
956 public OLEPackageScope getOlePackageScope() {
957 return olePackageScope;
958 }
959
960 public void setOlePackageScope(OLEPackageScope olePackageScope) {
961 this.olePackageScope = olePackageScope;
962 }
963
964 public OLEPackageType getOlePackageType() {
965 return olePackageType;
966 }
967
968 public void setOlePackageType(OLEPackageType olePackageType) {
969 this.olePackageType = olePackageType;
970 }
971
972 public OLEPaymentType getOlePaymentType() {
973 return olePaymentType;
974 }
975
976 public void setOlePaymentType(OLEPaymentType olePaymentType) {
977 this.olePaymentType = olePaymentType;
978 }
979
980 public OLERequestPriority getOleRequestPriority() {
981 return oleRequestPriority;
982 }
983
984 public void setOleRequestPriority(OLERequestPriority oleRequestPriority) {
985 this.oleRequestPriority = oleRequestPriority;
986 }
987
988 public OLEAuthenticationType getOleAuthenticationType() {
989 return oleAuthenticationType;
990 }
991
992 public void setOleAuthenticationType(OLEAuthenticationType oleAuthenticationType) {
993 this.oleAuthenticationType = oleAuthenticationType;
994 }
995
996 public OLEEResourceStatus getOleeResourceStatus() {
997 return oleeResourceStatus;
998 }
999
1000 public void setOleeResourceStatus(OLEEResourceStatus oleeResourceStatus) {
1001 this.oleeResourceStatus = oleeResourceStatus;
1002 }
1003
1004 public List<OLEFormatTypeList> getOleFormatTypes() {
1005 return oleFormatTypes;
1006 }
1007
1008 public void setOleFormatTypes(List<OLEFormatTypeList> oleFormatTypes) {
1009 this.oleFormatTypes = oleFormatTypes;
1010 }
1011
1012 public List<OLEMaterialTypeList> getOleMaterialTypes() {
1013 return oleMaterialTypes;
1014 }
1015
1016 public void setOleMaterialTypes(List<OLEMaterialTypeList> oleMaterialTypes) {
1017 this.oleMaterialTypes = oleMaterialTypes;
1018 }
1019
1020 public List<OLEContentTypes> getOleContentTypes() {
1021 return oleContentTypes;
1022 }
1023
1024 public void setOleContentTypes(List<OLEContentTypes> oleContentTypes) {
1025 this.oleContentTypes = oleContentTypes;
1026 }
1027
1028 public List<OLEEResourceNotes> getEresNotes() {
1029 return eresNotes;
1030 }
1031
1032 public void setEresNotes(List<OLEEResourceNotes> eresNotes) {
1033 this.eresNotes = eresNotes;
1034 }
1035
1036 public List<OLEEResourceRequestor> getRequestors() {
1037 return requestors;
1038 }
1039
1040 public void setRequestors(List<OLEEResourceRequestor> requestors) {
1041 this.requestors = requestors;
1042 }
1043
1044 public List<OLEEResourceSelector> getSelectors() {
1045 return selectors;
1046 }
1047
1048 public void setSelectors(List<OLEEResourceSelector> selectors) {
1049 this.selectors = selectors;
1050 }
1051
1052 public List<OLEEResourceReqSelComments> getReqSelComments() {
1053 return reqSelComments;
1054 }
1055
1056 public void setReqSelComments(List<OLEEResourceReqSelComments> reqSelComments) {
1057 this.reqSelComments = reqSelComments;
1058 }
1059
1060 public List<OLEEResourceEventLog> getOleERSEventLogs() {
1061 return oleERSEventLogs;
1062 }
1063
1064 public void setOleERSEventLogs(List<OLEEResourceEventLog> oleERSEventLogs) {
1065 this.oleERSEventLogs = oleERSEventLogs;
1066 }
1067
1068 public List<OLEEResourceLicense> getOleERSLicenseRequests() {
1069 return oleERSLicenseRequests;
1070 }
1071
1072 public void setOleERSLicenseRequests(List<OLEEResourceLicense> oleERSLicenseRequests) {
1073 this.oleERSLicenseRequests = oleERSLicenseRequests;
1074 }
1075
1076 public boolean isSelectFlag() {
1077 return selectFlag;
1078 }
1079
1080 public void setSelectFlag(boolean selectFlag) {
1081 this.selectFlag = selectFlag;
1082 }
1083 public String getSelectInstance() {
1084 return selectInstance;
1085 }
1086
1087 public void setSelectInstance(String selectInstance) {
1088 this.selectInstance = selectInstance;
1089 }
1090
1091 public String getDefaultCoverage() {
1092 return defaultCoverage;
1093 }
1094
1095 public void setDefaultCoverage(String defaultCoverage) {
1096 this.defaultCoverage = defaultCoverage;
1097 }
1098
1099 public String getDefaultPerpetualAccess() {
1100 return defaultPerpetualAccess;
1101 }
1102
1103 public void setDefaultPerpetualAccess(String defaultPerpetualAccess) {
1104 this.defaultPerpetualAccess = defaultPerpetualAccess;
1105 }
1106
1107 public String getDefaultCoverageView() {
1108 return defaultCoverageView;
1109 }
1110
1111 public void setDefaultCoverageView(String defaultCoverageView) {
1112 this.defaultCoverageView = defaultCoverageView;
1113 }
1114
1115 public String getDefaultPerpetualAccessView() {
1116 return defaultPerpetualAccessView;
1117 }
1118
1119 public void setDefaultPerpetualAccessView(String defaultPerpetualAccessView) {
1120 this.defaultPerpetualAccessView = defaultPerpetualAccessView;
1121 }
1122
1123 public List<OLEEResourceInstance> getOleERSInstances() {
1124 return oleERSInstances;
1125 }
1126
1127 public void setOleERSInstances(List<OLEEResourceInstance> oleERSInstances) {
1128 this.oleERSInstances = oleERSInstances;
1129 }
1130
1131 public List<OleCopy> getCopyList() {
1132 return copyList;
1133 }
1134
1135 public void setCopyList(List<OleCopy> copyList) {
1136 this.copyList = copyList;
1137 }
1138
1139 public List<OLEEResourcePO> getOleERSPOItems() {
1140 return oleERSPOItems;
1141 }
1142
1143 public void setOleERSPOItems(List<OLEEResourcePO> oleERSPOItems) {
1144 this.oleERSPOItems = oleERSPOItems;
1145 }
1146
1147 public VendorDetail getVendorDetail() {
1148 return vendorDetail;
1149 }
1150
1151 public void setVendorDetail(VendorDetail vendorDetail) {
1152 this.vendorDetail = vendorDetail;
1153 }
1154
1155 public PurchaseOrderType getOrderType() {
1156 return orderType;
1157 }
1158
1159 public void setOrderType(PurchaseOrderType orderType) {
1160 this.orderType = orderType;
1161 }
1162
1163 public String getVendorName() {
1164 return vendorName;
1165 }
1166
1167 public void setVendorName(String vendorName) {
1168 this.vendorName = vendorName;
1169 }
1170
1171 public OleStatisticalSearchingCodes getOleStatisticalCode() {
1172 return oleStatisticalCode;
1173 }
1174
1175 public void setOleStatisticalCode(OleStatisticalSearchingCodes oleStatisticalCode) {
1176 this.oleStatisticalCode = oleStatisticalCode;
1177 }
1178
1179 public OLEEResourceInstance getOleERSInstance() {
1180 return oleERSInstance;
1181 }
1182
1183 public void setOleERSInstance(OLEEResourceInstance oleERSInstance) {
1184 this.oleERSInstance = oleERSInstance;
1185 }
1186
1187 public List<OLEEResourceInvoices> getOleERSInvoices() {
1188 return oleERSInvoices;
1189 }
1190
1191 public void setOleERSInvoices(List<OLEEResourceInvoices> oleERSInvoices) {
1192 this.oleERSInvoices = oleERSInvoices;
1193 }
1194
1195 public boolean iseInstanceFlag() {
1196 return eInstanceFlag;
1197 }
1198
1199 public void seteInstanceFlag(boolean eInstanceFlag) {
1200 this.eInstanceFlag = eInstanceFlag;
1201 }
1202
1203 public String getDummyDefaultCoverage() {
1204 return dummyDefaultCoverage;
1205 }
1206
1207 public void setDummyDefaultCoverage(String dummyDefaultCoverage) {
1208 this.dummyDefaultCoverage = dummyDefaultCoverage;
1209 }
1210
1211 public String getDummyDefaultPerpetualAccess() {
1212 return dummyDefaultPerpetualAccess;
1213 }
1214
1215 public void setDummyDefaultPerpetualAccess(String dummyDefaultPerpetualAccess) {
1216 this.dummyDefaultPerpetualAccess = dummyDefaultPerpetualAccess;
1217 }
1218
1219 public boolean isCovEdited() {
1220 return isCovEdited;
1221 }
1222
1223 public void setCovEdited(boolean covEdited) {
1224 isCovEdited = covEdited;
1225 }
1226
1227 public boolean isPerAccEdited() {
1228 return isPerAccEdited;
1229 }
1230
1231 public void setPerAccEdited(boolean perAccEdited) {
1232 isPerAccEdited = perAccEdited;
1233 }
1234
1235 public String getCovStartDate() {
1236 return covStartDate;
1237 }
1238
1239 public void setCovStartDate(String covStartDate) {
1240 this.covStartDate = covStartDate;
1241 }
1242
1243 public String getCovEndDate() {
1244 return covEndDate;
1245 }
1246
1247 public void setCovEndDate(String covEndDate) {
1248 this.covEndDate = covEndDate;
1249 }
1250
1251 public String getPerAccStartDate() {
1252 return perAccStartDate;
1253 }
1254
1255 public void setPerAccStartDate(String perAccStartDate) {
1256 this.perAccStartDate = perAccStartDate;
1257 }
1258
1259 public String getPerAccEndDate() {
1260 return perAccEndDate;
1261 }
1262
1263 public void setPerAccEndDate(String perAccEndDate) {
1264 this.perAccEndDate = perAccEndDate;
1265 }
1266
1267 public List<OLEEResourceInvoices> geteRSInvoices() {
1268 return eRSInvoices;
1269 }
1270
1271 public void seteRSInvoices(List<OLEEResourceInvoices> eRSInvoices) {
1272 this.eRSInvoices = eRSInvoices;
1273 }
1274
1275 public List<OLEEResourceAccountingLine> getAccountingLines() {
1276 return accountingLines;
1277 }
1278
1279 public void setAccountingLines(List<OLEEResourceAccountingLine> accountingLines) {
1280 this.accountingLines = accountingLines;
1281 }
1282
1283 public List<OLEEResourceContacts> getOleERSContacts() {
1284 return oleERSContacts;
1285 }
1286
1287 public void setOleERSContacts(List<OLEEResourceContacts> oleERSContacts) {
1288 this.oleERSContacts = oleERSContacts;
1289 }
1290
1291 public String getGokbconfig() {
1292 return gokbconfig;
1293 }
1294
1295 public void setGokbconfig(String gokbconfig) {
1296 this.gokbconfig = gokbconfig;
1297 }
1298
1299 public void setResultDetails(DocumentSearchResult searchResult, List<OLESearchCondition> oleSearchEresources) {
1300 List<DocumentAttribute> documentAttributes = searchResult.getDocumentAttributes();
1301 for (DocumentAttribute docAttribute : documentAttributes) {
1302 String name = docAttribute.getName();
1303 if (OLEConstants.OLEEResourceRecord.ERESOURCE_RESULT_FIELDS.contains(name)) {
1304 if (name.equals(OLEConstants.OLEEResourceRecord.ERESOURCE_TITLE)) {
1305 name = OLEConstants.OLEEResourceRecord.ERESOURCE_TITLE;
1306 }
1307 Method getMethod;
1308 try {
1309 getMethod = getSetMethod(OLEEResourceRecordDocument.class, name, new Class[]{String.class});
1310 getMethod.invoke(this, docAttribute.getValue().toString());
1311 } catch (Exception ex) {
1312 ex.printStackTrace();
1313 }
1314 }
1315 }
1316 }
1317
1318 private Method getSetMethod(Class targetClass, String attr, Class[] objectAttributes) throws Exception {
1319 Method method = targetClass.getMethod("set" + StringUtils.capitalize(attr), objectAttributes);
1320 return method;
1321 }
1322
1323 @Override
1324 public void prepareForSave(KualiDocumentEvent event) {
1325
1326
1327 super.prepareForSave(event);
1328 try {
1329 LOG.debug("###########Inside OLEEResourceRecordDocument " + "prepareForSave###########");
1330 if (this.getStatisticalSearchingCode() != null && (!"".equals(this.getStatisticalSearchingCode().trim()))) {
1331 this.setStatisticalSearchingCodeId(Integer.parseInt(this.getStatisticalSearchingCode()));
1332 Map statisticalCodeMap = new HashMap<>();
1333 statisticalCodeMap.put(OLEConstants.OLEEResourceRecord.STATISTICAL_SEARCH_CD_ID, this.getStatisticalSearchingCodeId());
1334 OleStatisticalSearchingCodes oleStatisticalSearchingCodes = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OleStatisticalSearchingCodes.class, statisticalCodeMap);
1335 if(oleStatisticalSearchingCodes != null) {
1336 this.setOleStatisticalCode(oleStatisticalSearchingCodes);
1337 }
1338 }
1339 String vendorId = this.getVendorId();
1340 if (vendorId != null && !vendorId.isEmpty()) {
1341 String[] vendorDetails = vendorId.split("-");
1342 Integer vendorHeaderGeneratedIdentifier = vendorDetails.length > 0 ? Integer.parseInt(vendorDetails[0]) : 0;
1343 Integer vendorDetailAssignedIdentifier = vendorDetails.length > 1 ? Integer.parseInt(vendorDetails[1]) : 0;
1344 Map vendorMap = new HashMap<>();
1345 vendorMap.put(OLEConstants.OLEEResourceRecord.VENDOR_HEADER_GEN_ID, vendorHeaderGeneratedIdentifier);
1346 vendorMap.put(OLEConstants.OLEEResourceRecord.VENDOR_DETAILED_ASSIGNED_ID, vendorDetailAssignedIdentifier);
1347 VendorDetail vendorDetailDoc = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(VendorDetail.class, vendorMap);
1348 if (vendorDetailDoc != null) {
1349 this.setVendorName(vendorDetailDoc.getVendorName());
1350 this.setActiveVendor(vendorDetailDoc.isActiveIndicator());
1351 }
1352 }
1353
1354 String MobAccessId = "";
1355 if (this.getMobileAccess() != null && this.getMobileAccess().size() > 0) {
1356 List<String> mobileAccessId = this.getMobileAccess();
1357 if (mobileAccessId.size() > 0) {
1358 for (String mobileAccess : mobileAccessId) {
1359 MobAccessId += mobileAccess;
1360 MobAccessId += OLEConstants.OLEEResourceRecord.ACCESS_LOCATION_SEPARATOR;
1361 }
1362 this.setMobileAccessId(MobAccessId.substring(0, (MobAccessId.lastIndexOf(OLEConstants.OLEEResourceRecord.ACCESS_LOCATION_SEPARATOR))));
1363 }
1364 }
1365 this.setLicenseReqStatus("");
1366 List<OLEEResourceLicense> oleERSLicenses = this.getOleERSLicenseRequests();
1367 List<DateTime> modifiedDateList = new ArrayList<>();
1368 DateTime lastModifiedDate = null;
1369 if (oleERSLicenses.size() > 0) {
1370 for (int i = oleERSLicenses.size()-1; i >= 0; i--) {
1371 DateTime appStatus = oleERSLicenses.get(i).getDocumentRouteHeaderValue().getApplicationDocumentStatusDate();
1372 if (!OLEConstants.OLEEResourceRecord.ERESOURCE_STATUSES.contains(appStatus) &&
1373 (!oleERSLicenses.get(i).getDocumentRouteHeaderValue().getAppDocStatus().equalsIgnoreCase(
1374 OLEConstants.OLEEResourceRecord.LICENSE_FINAL_STATUS))) {
1375 modifiedDateList.add(appStatus);
1376 }
1377 DocumentRouteHeaderValue documentRouteHeaderValue = oleERSLicenses.get(i).getDocumentRouteHeaderValue();
1378 if(documentRouteHeaderValue != null) {
1379 String licenceTitle = documentRouteHeaderValue.getDocTitle();
1380 if(licenceTitle != null && !licenceTitle.isEmpty()) {
1381 licenceTitle = licenceTitle.substring(26);
1382 }
1383 oleERSLicenses.get(i).setDocumentDescription(licenceTitle);
1384 }
1385 }
1386 for (int modifiedDate = 0; modifiedDate<modifiedDateList.size(); modifiedDate++) {
1387 DateTime dateTime = modifiedDateList.get(modifiedDate);
1388 if (lastModifiedDate == null) {
1389 lastModifiedDate = dateTime;
1390 } else {
1391 if (dateTime.isAfter(lastModifiedDate)) {
1392 lastModifiedDate = dateTime;
1393 }
1394 }
1395 }
1396 for (int i = oleERSLicenses.size()-1; i >= 0; i--) {
1397 if (lastModifiedDate != null && lastModifiedDate.equals(oleERSLicenses.get(i).getDocumentRouteHeaderValue().getApplicationDocumentStatusDate())) {
1398 this.setLicenseReqStatus(oleERSLicenses.get(i).getDocumentRouteHeaderValue().getApplicationDocumentStatus());
1399 }
1400 }
1401 }
1402 } catch (Exception e) {
1403 LOG.error("Exception during prepareForSave()", e);
1404 throw new RuntimeException(e);
1405 }
1406
1407
1408 OLEEResourceEventLog oleEResourceEventLog = new OLEEResourceEventLog();
1409 if (status == null){
1410 oleEResourceEventLog.setCurrentTimeStamp();
1411 oleEResourceEventLog.setEventUser(GlobalVariables.getUserSession().getPrincipalName());
1412 oleEResourceEventLog.setEventType(OLEConstants.OLEEResourceRecord.SYSTEM);
1413 oleEResourceEventLog.setEventNote(OLEConstants.OLEEResourceRecord.STATUS_IS+getStatusName());
1414 oleEResourceEventLog.setSaveFlag(true);
1415 this.getOleERSEventLogs().add(oleEResourceEventLog);
1416 }
1417 else if (!status.equals(getStatusName())){
1418 oleEResourceEventLog.setCurrentTimeStamp();
1419 oleEResourceEventLog.setEventUser(GlobalVariables.getUserSession().getPrincipalName());
1420 oleEResourceEventLog.setEventType(OLEConstants.OLEEResourceRecord.SYSTEM);
1421 oleEResourceEventLog.setEventNote(OLEConstants.OLEEResourceRecord.STATUS_FROM+ status +OLEConstants.OLEEResourceRecord.STATUS_TO+getStatusName());
1422 oleEResourceEventLog.setSaveFlag(true);
1423 this.getOleERSEventLogs().add(oleEResourceEventLog);
1424 }
1425 status=getStatusName();
1426 String defaultCov = this.getDummyDefaultCoverage();
1427 if(defaultCov != null && !defaultCov.isEmpty() && !this.isCovEdited()) {
1428 this.setCovEdited(true);
1429 getOleEResourceSearchService().getDefaultCovDatesToPopup(this,defaultCov);
1430 }
1431 String defaultPerAcc = this.getDummyDefaultPerpetualAccess();
1432 if(defaultPerAcc != null && !defaultPerAcc.isEmpty() && !this.isPerAccEdited()) {
1433 this.setPerAccEdited(true);
1434 getOleEResourceSearchService().getDefaultPerAccDatesToPopup(this,defaultPerAcc);
1435 }
1436 getOleEResourceSearchService().saveDefaultCoverageDate(this);
1437 getOleEResourceSearchService().saveDefaultPerpetualAccessDate(this);
1438 try {
1439 getOleEResourceSearchService().saveEResourceInstanceToDocstore(this);
1440 } catch (Exception e) {
1441 e.printStackTrace();
1442 }
1443 }
1444
1445 public void processAfterRetrieve() {
1446 super.processAfterRetrieve();
1447 if (this.getStatisticalSearchingCodeId() != null) {
1448 this.setStatisticalSearchingCode(this.getStatisticalSearchingCodeId().toString());
1449 }
1450 String mobileAccessId = this.getMobileAccessId();
1451 if (mobileAccessId != null && !mobileAccessId.isEmpty()) {
1452 String[] mobileAccess = mobileAccessId.split(OLEConstants.OLEEResourceRecord.ACCESS_LOCATION_SEPARATOR);
1453 List<String> mobileAccesses = new ArrayList<>();
1454 for (String mobileAccId : mobileAccess) {
1455 mobileAccesses.add(mobileAccId);
1456 }
1457 this.setMobileAccess(mobileAccesses);
1458 }
1459 if (this.getOleAccessType() != null) {
1460 this.setAccessType(this.getOleAccessType().getOleAccessTypeName());
1461 } else if (this.getAccessTypeId() != null) {
1462 Map accessTpeMap = new HashMap<>();
1463 accessTpeMap.put("oleAccessTypeId", this.getAccessTypeId());
1464 oleAccessType = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OLEAccessType.class, accessTpeMap);
1465 if (oleAccessType != null) {
1466 this.setAccessType(oleAccessType.getOleAccessTypeName());
1467 }
1468 }
1469 if (StringUtils.isNotBlank(this.getVendorId())) {
1470 String[] vendorDetails = this.getVendorId().split("-");
1471 Integer vendorHeaderGeneratedIdentifier = vendorDetails.length > 0 ? Integer.parseInt(vendorDetails[0]) : 0;
1472 Integer vendorDetailAssignedIdentifier = vendorDetails.length > 1 ? Integer.parseInt(vendorDetails[1]) : 0;
1473 Map vendorMap = new HashMap<>();
1474 vendorMap.put(OLEConstants.OLEEResourceRecord.VENDOR_HEADER_GEN_ID, vendorHeaderGeneratedIdentifier);
1475 vendorMap.put(OLEConstants.OLEEResourceRecord.VENDOR_DETAILED_ASSIGNED_ID, vendorDetailAssignedIdentifier);
1476 VendorDetail vendorDetailDoc = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(VendorDetail.class, vendorMap);
1477 if (vendorDetailDoc != null) {
1478 this.setVendorName(vendorDetailDoc.getVendorName());
1479 this.setActiveVendor(vendorDetailDoc.isActiveIndicator());
1480 }
1481 }
1482 if (StringUtils.isNotBlank(this.getPublisherId())) {
1483 String[] publisherDetails = this.getPublisherId().split("-");
1484 Map vendorMap = new HashMap<>();
1485 int vendorHeaderGeneratedIdentifier = publisherDetails.length > 0 ? Integer.parseInt(publisherDetails[0]) : 0;
1486 int vendorDetailAssignedIdentifier = publisherDetails.length > 1 ? Integer.parseInt(publisherDetails[1]) : 0;
1487 vendorMap.put(OLEConstants.OLEEResourceRecord.VENDOR_HEADER_GEN_ID, vendorHeaderGeneratedIdentifier);
1488 vendorMap.put(OLEConstants.OLEEResourceRecord.VENDOR_DETAILED_ASSIGNED_ID, vendorDetailAssignedIdentifier);
1489 VendorDetail vendorDetailDoc = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(VendorDetail.class, vendorMap);
1490 if (vendorDetailDoc != null) {
1491 this.setActivePublisher(vendorDetailDoc.isActiveIndicator());
1492 this.setPublisher(vendorDetailDoc.getVendorName());
1493 }
1494
1495 }
1496 if (this.getOleAuthenticationType() != null) {
1497 this.setAuthenticationType(this.getOleAuthenticationType().getOleAuthenticationTypeName());
1498 } else if (this.getAuthenticationTypeId() != null) {
1499 Map authenticationMap = new HashMap();
1500 authenticationMap.put("oleAuthenticationTypeId", this.getAuthenticationTypeId());
1501 oleAuthenticationType = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OLEAuthenticationType.class, authenticationMap);
1502 if (oleAuthenticationType != null) {
1503 this.setAuthenticationType(oleAuthenticationType.getOleAuthenticationTypeName());
1504 }
1505 }
1506 this.setLicenseReqStatus("");
1507 List<OLEEResourceLicense> oleERSLicenses = this.getOleERSLicenseRequests();
1508 List<DateTime> modifiedDateList = new ArrayList<>();
1509 DateTime lastModifiedDate = null;
1510 if (oleERSLicenses.size() > 0) {
1511 for (int i = oleERSLicenses.size()-1; i >= 0; i--) {
1512 DateTime appStatus = oleERSLicenses.get(i).getDocumentRouteHeaderValue().getApplicationDocumentStatusDate();
1513 if (!OLEConstants.OLEEResourceRecord.ERESOURCE_STATUSES.contains(appStatus) &&
1514 (!oleERSLicenses.get(i).getDocumentRouteHeaderValue().getAppDocStatus().equalsIgnoreCase(
1515 OLEConstants.OLEEResourceRecord.LICENSE_FINAL_STATUS))) {
1516 modifiedDateList.add(appStatus);
1517 }
1518 DocumentRouteHeaderValue documentRouteHeaderValue = oleERSLicenses.get(i).getDocumentRouteHeaderValue();
1519 if(documentRouteHeaderValue != null) {
1520 String licenceTitle = documentRouteHeaderValue.getDocTitle();
1521 if(licenceTitle != null && !licenceTitle.isEmpty()) {
1522 licenceTitle = licenceTitle.substring(26);
1523 }
1524 oleERSLicenses.get(i).setDocumentDescription(licenceTitle);
1525 }
1526 }
1527 for (int modifiedDate = 0; modifiedDate<modifiedDateList.size(); modifiedDate++) {
1528 DateTime dateTime = modifiedDateList.get(modifiedDate);
1529 if (lastModifiedDate == null) {
1530 lastModifiedDate = dateTime;
1531 } else {
1532 if (dateTime.isAfter(lastModifiedDate)) {
1533 lastModifiedDate = dateTime;
1534 }
1535 }
1536 }
1537 for (int i = oleERSLicenses.size()-1; i >= 0; i--) {
1538 if (lastModifiedDate!=null && lastModifiedDate.equals(oleERSLicenses.get(i).getDocumentRouteHeaderValue().getApplicationDocumentStatusDate())) {
1539 this.setLicenseReqStatus(oleERSLicenses.get(i).getDocumentRouteHeaderValue().getApplicationDocumentStatus());
1540 }
1541 }
1542 }
1543 List<OLEEResourceInstance> oleERSInstances = this.getOleERSInstances();
1544 OLEEResourceInstance oleeResourceInstance = null;
1545 List<Holdings> holdingsList = new ArrayList<Holdings>();
1546 List<String> instanceId = new ArrayList<String>();
1547 if (oleERSInstances.size() > 0) {
1548 for (OLEEResourceInstance oleERSInstance : oleERSInstances) {
1549 instanceId.add(oleERSInstance.getInstanceId());
1550 }
1551 }
1552 if (instanceId.size() > 0) {
1553 for(String id:instanceId){
1554 try {
1555 holdingsList.add(getDocstoreClientLocator().getDocstoreClient().retrieveHoldings(id));
1556 } catch (Exception e) {
1557 e.printStackTrace();
1558 }
1559 }
1560 }
1561 for (Holdings holdings:holdingsList){
1562 if(holdings instanceof EHoldings){
1563 HoldingOlemlRecordProcessor holdingOlemlRecordProcessor=new HoldingOlemlRecordProcessor();
1564 OleHoldings oleHoldings=holdingOlemlRecordProcessor.fromXML(holdings.getContent());
1565 for (OLEEResourceInstance oleERSInstance : oleERSInstances) {
1566 if (holdings.getId().equals(oleERSInstance.getInstanceId())) {
1567 oleeResourceInstance = oleERSInstance;
1568 StringBuffer urls = new StringBuffer();
1569 for(Link link :oleHoldings.getLink()){
1570 urls.append(link.getUrl());
1571 urls.append(",");
1572 }
1573 if (urls != null && urls.length() > 0) {
1574 String url = urls.substring(0, urls.lastIndexOf(","));
1575 oleeResourceInstance.setUrl(url);
1576 }
1577 }
1578 }
1579 }
1580
1581 }
1582 getOleEResourceSearchService().getDefaultCovergeDate(this);
1583 getOleEResourceSearchService().getDefaultPerpetualAccessDate(this);
1584 getOleEResourceSearchService().updatePlatformProvider(this);
1585 getOleeResourceHelperService().setAccessInfo(this);
1586
1587 }
1588
1589 public String getPhone() {
1590 return phone;
1591 }
1592
1593 public void setPhone(String phone) {
1594 this.phone = phone;
1595 }
1596
1597 public List<OLEPhoneNumber> getPhoneNos() {
1598 return phoneNos;
1599 }
1600
1601 public void setPhoneNos(List<OLEPhoneNumber> phoneNos) {
1602 this.phoneNos = phoneNos;
1603 }
1604
1605 public List<OLEEResourceChangeDashBoard> getOleEResourceChangeDashBoards() {
1606 return oleEResourceChangeDashBoards;
1607 }
1608
1609 public void setOleEResourceChangeDashBoards(List<OLEEResourceChangeDashBoard> oleEResourceChangeDashBoards) {
1610 this.oleEResourceChangeDashBoards = oleEResourceChangeDashBoards;
1611 }
1612
1613 public String getGokbId() {
1614 return gokbId;
1615 }
1616
1617 public void setGokbId(String gokbId) {
1618 this.gokbId = gokbId;
1619 }
1620
1621 public List<OLELinkedEresource> getOleLinkedEresources() {
1622 return oleLinkedEresources;
1623 }
1624
1625 public void setOleLinkedEresources(List<OLELinkedEresource> oleLinkedEresources) {
1626 this.oleLinkedEresources = oleLinkedEresources;
1627 }
1628
1629 public boolean isSelectEResFlag() {
1630 return selectEResFlag;
1631 }
1632
1633 public void setSelectEResFlag(boolean selectEResFlag) {
1634 this.selectEResFlag = selectEResFlag;
1635 }
1636
1637 public String getRemoveOrRelinkToParent() {
1638 return removeOrRelinkToParent;
1639 }
1640
1641 public void setRemoveOrRelinkToParent(String removeOrRelinkToParent) {
1642 this.removeOrRelinkToParent = removeOrRelinkToParent;
1643 }
1644
1645 public double getFiscalYearCost() {
1646 return fiscalYearCost;
1647 }
1648
1649 public void setFiscalYearCost(double fiscalYearCost) {
1650 this.fiscalYearCost = fiscalYearCost;
1651 }
1652
1653 public double getYearPriceQuote() {
1654 return yearPriceQuote;
1655 }
1656
1657 public void setYearPriceQuote(double yearPriceQuote) {
1658 this.yearPriceQuote = yearPriceQuote;
1659 }
1660
1661 public double getCostIncrease() {
1662 return costIncrease;
1663 }
1664
1665 public void setCostIncrease(double costIncrease) {
1666 this.costIncrease = costIncrease;
1667 }
1668
1669 public double getPercentageIncrease() {
1670 return percentageIncrease;
1671 }
1672
1673 public void setPercentageIncrease(double percentageIncrease) {
1674 this.percentageIncrease = percentageIncrease;
1675 }
1676
1677 public String getEmailText() {
1678 return emailText;
1679 }
1680
1681 public void setEmailText(String emailText) {
1682 this.emailText = emailText;
1683 }
1684
1685 public List<OLEStandardIdentifier> getStandardIdentifiers() {
1686 return standardIdentifiers;
1687 }
1688
1689 public void setStandardIdentifiers(List<OLEStandardIdentifier> standardIdentifiers) {
1690 this.standardIdentifiers = standardIdentifiers;
1691 }
1692
1693 public List<OLEGOKbPackage> getGoKbPackageList() {
1694 return goKbPackageList;
1695 }
1696
1697 public void setGoKbPackageList(List<OLEGOKbPackage> goKbPackageList) {
1698 this.goKbPackageList = goKbPackageList;
1699 }
1700
1701 public List<OLEGOKbPlatform> getGoKbPlatformList() {
1702 return goKbPlatformList;
1703 }
1704
1705 public void setGoKbPlatformList(List<OLEGOKbPlatform> goKbPlatformList) {
1706 this.goKbPlatformList = goKbPlatformList;
1707 }
1708
1709 public List<OLEGOKbTIPP> getGoKbTIPPList() {
1710 return goKbTIPPList;
1711 }
1712
1713 public void setGoKbTIPPList(List<OLEGOKbTIPP> goKbTIPPList) {
1714 this.goKbTIPPList = goKbTIPPList;
1715 }
1716
1717 public String getRelationshipType() {
1718 return relationshipType;
1719 }
1720
1721 public void setRelationshipType(String relationshipType) {
1722 this.relationshipType = relationshipType;
1723 }
1724
1725 public int getActiveTitlesCount() {
1726 return activeTitlesCount;
1727 }
1728
1729 public void setActiveTitlesCount(int activeTitlesCount) {
1730 this.activeTitlesCount = activeTitlesCount;
1731 }
1732
1733 public String getProfile() {
1734 return profile;
1735 }
1736
1737 public void setProfile(String profile) {
1738 this.profile = profile;
1739 }
1740
1741 public List<OLEGOKbPlatform> getGoKbPlatforms() {
1742 return goKbPlatforms;
1743 }
1744
1745 public void setGoKbPlatforms(List<OLEGOKbPlatform> goKbPlatforms) {
1746 this.goKbPlatforms = goKbPlatforms;
1747 }
1748
1749 public List<OLEGOKbMappingValue> getOleGOKbMappingValueList() {
1750 return oleGOKbMappingValueList;
1751 }
1752
1753 public void setOleGOKbMappingValueList(List<OLEGOKbMappingValue> oleGOKbMappingValueList) {
1754 this.oleGOKbMappingValueList = oleGOKbMappingValueList;
1755 }
1756
1757 public Timestamp getDateAccessConfirmed() {
1758 return dateAccessConfirmed;
1759 }
1760
1761 public void setDateAccessConfirmed(Timestamp dateAccessConfirmed) {
1762 this.dateAccessConfirmed = dateAccessConfirmed;
1763 }
1764
1765 public String getAccessUserName() {
1766 return accessUserName;
1767 }
1768
1769 public void setAccessUserName(String accessUserName) {
1770 this.accessUserName = accessUserName;
1771 }
1772
1773 public String getAccessPassword() {
1774 return accessPassword;
1775 }
1776
1777 public void setAccessPassword(String accessPassword) {
1778 this.accessPassword = accessPassword;
1779 }
1780
1781 public String getProxiedURL() {
1782 return proxiedURL;
1783 }
1784
1785 public void setProxiedURL(String proxiedURL) {
1786 this.proxiedURL = proxiedURL;
1787 }
1788
1789 public boolean isProxiedResource() {
1790 return proxiedResource;
1791 }
1792
1793 public void setProxiedResource(boolean proxiedResource) {
1794 this.proxiedResource = proxiedResource;
1795 }
1796
1797 public String getMobileAccessId() {
1798 return mobileAccessId;
1799 }
1800
1801 public void setMobileAccessId(String mobileAccessId) {
1802 this.mobileAccessId = mobileAccessId;
1803 }
1804
1805 public List<String> getMobileAccess() {
1806 return mobileAccess;
1807 }
1808
1809 public void setMobileAccess(List<String> mobileAccess) {
1810 this.mobileAccess = mobileAccess;
1811 }
1812
1813 public String getMobileAccessNote() {
1814 return mobileAccessNote;
1815 }
1816
1817 public void setMobileAccessNote(String mobileAccessNote) {
1818 this.mobileAccessNote = mobileAccessNote;
1819 }
1820
1821 public boolean isBrandingComplete() {
1822 return brandingComplete;
1823 }
1824
1825 public void setBrandingComplete(boolean brandingComplete) {
1826 this.brandingComplete = brandingComplete;
1827 }
1828
1829 public boolean isPlatformConfigComplete() {
1830 return platformConfigComplete;
1831 }
1832
1833 public void setPlatformConfigComplete(boolean platformConfigComplete) {
1834 this.platformConfigComplete = platformConfigComplete;
1835 }
1836
1837 public String getMarcRecordSourceTypeId() {
1838 return marcRecordSourceTypeId;
1839 }
1840
1841 public void setMarcRecordSourceTypeId(String marcRecordSourceTypeId) {
1842 this.marcRecordSourceTypeId = marcRecordSourceTypeId;
1843 }
1844
1845 public Timestamp getLastRecordLoadDate() {
1846 return lastRecordLoadDate;
1847 }
1848
1849 public void setLastRecordLoadDate(Timestamp lastRecordLoadDate) {
1850 this.lastRecordLoadDate = lastRecordLoadDate;
1851 }
1852
1853 public String getMarcRecordSource() {
1854 return marcRecordSource;
1855 }
1856
1857 public void setMarcRecordSource(String marcRecordSource) {
1858 this.marcRecordSource = marcRecordSource;
1859 }
1860
1861 public String getMarcRecordUpdateFreqId() {
1862 return marcRecordUpdateFreqId;
1863 }
1864
1865 public void setMarcRecordUpdateFreqId(String marcRecordUpdateFreqId) {
1866 this.marcRecordUpdateFreqId = marcRecordUpdateFreqId;
1867 }
1868
1869 public String getMarcRecordURL() {
1870 return marcRecordURL;
1871 }
1872
1873 public void setMarcRecordURL(String marcRecordURL) {
1874 this.marcRecordURL = marcRecordURL;
1875 }
1876
1877 public String getMarcRecordUserName() {
1878 return marcRecordUserName;
1879 }
1880
1881 public void setMarcRecordUserName(String marcRecordUserName) {
1882 this.marcRecordUserName = marcRecordUserName;
1883 }
1884
1885 public String getMarcRecordPasword() {
1886 return marcRecordPasword;
1887 }
1888
1889 public void setMarcRecordPasword(String marcRecordPasword) {
1890 this.marcRecordPasword = marcRecordPasword;
1891 }
1892
1893 public String getMarcRecordNote() {
1894 return marcRecordNote;
1895 }
1896
1897 public void setMarcRecordNote(String marcRecordNote) {
1898 this.marcRecordNote = marcRecordNote;
1899 }
1900
1901 public List<OLEEResourceAccessWorkflow> getOleERSAccessWorkflows() {
1902 return oleERSAccessWorkflows;
1903 }
1904
1905 public void setOleERSAccessWorkflows(List<OLEEResourceAccessWorkflow> oleERSAccessWorkflows) {
1906 this.oleERSAccessWorkflows = oleERSAccessWorkflows;
1907 }
1908
1909 public String getLineActions() {
1910 return lineActions;
1911 }
1912
1913 public void setLineActions(String lineActions) {
1914 this.lineActions = lineActions;
1915 }
1916
1917 public List<OLEEResourceInstance> geteRSInstances() {
1918 return eRSInstances;
1919 }
1920
1921 public void seteRSInstances(List<OLEEResourceInstance> eRSInstances) {
1922 this.eRSInstances = eRSInstances;
1923 }
1924
1925 public List<OLEEResourcePO> getLinkedERSPOItems() {
1926 return linkedERSPOItems;
1927 }
1928
1929 public void setLinkedERSPOItems(List<OLEEResourcePO> linkedERSPOItems) {
1930 this.linkedERSPOItems = linkedERSPOItems;
1931 }
1932
1933 public String getBannerMessage() {
1934 return bannerMessage;
1935 }
1936
1937 public void setBannerMessage(String bannerMessage) {
1938 this.bannerMessage = bannerMessage;
1939 }
1940
1941 public Timestamp getGokbLastUpdatedDate() {
1942 return gokbLastUpdatedDate;
1943 }
1944
1945 public void setGokbLastUpdatedDate(Timestamp gokbLastUpdatedDate) {
1946 this.gokbLastUpdatedDate = gokbLastUpdatedDate;
1947 }
1948
1949 public String getAccessDescription() {
1950 return accessDescription;
1951 }
1952
1953 public void setAccessDescription(String accessDescription) {
1954 this.accessDescription = accessDescription;
1955 }
1956
1957 public String getWorkflowConfigurationId() {
1958 return workflowConfigurationId;
1959 }
1960
1961 public void setWorkflowConfigurationId(String workflowConfigurationId) {
1962 this.workflowConfigurationId = workflowConfigurationId;
1963 }
1964
1965 public String getOleAccessActivationDocumentNumber() {
1966 return oleAccessActivationDocumentNumber;
1967 }
1968
1969 public void setOleAccessActivationDocumentNumber(String oleAccessActivationDocumentNumber) {
1970 this.oleAccessActivationDocumentNumber = oleAccessActivationDocumentNumber;
1971 }
1972
1973 public List<OLEEResourceInstance> getDeletedInstances() {
1974 return deletedInstances;
1975 }
1976
1977 public void setDeletedInstances(List<OLEEResourceInstance> deletedInstances) {
1978 this.deletedInstances = deletedInstances;
1979 }
1980
1981 public List<OLEEResourceInstance> getPurchaseOrderInstances() {
1982 return purchaseOrderInstances;
1983 }
1984
1985 public void setPurchaseOrderInstances(List<OLEEResourceInstance> purchaseOrderInstances) {
1986 this.purchaseOrderInstances = purchaseOrderInstances;
1987 }
1988
1989 public String getGokbProfile() {
1990 return gokbProfile;
1991 }
1992
1993 public void setGokbProfile(String gokbProfile) {
1994 this.gokbProfile = gokbProfile;
1995 }
1996
1997 public String getGokbPackageStatus() {
1998 return gokbPackageStatus;
1999 }
2000
2001 public void setGokbPackageStatus(String gokbPackageStatus) {
2002 this.gokbPackageStatus = gokbPackageStatus;
2003 }
2004
2005 public boolean isAccessReadOnly() {
2006 return accessReadOnly;
2007 }
2008
2009 public void setAccessReadOnly(boolean accessReadOnly) {
2010 this.accessReadOnly = accessReadOnly;
2011 }
2012
2013 public String getOldTitle() {
2014 return oldTitle;
2015 }
2016
2017 public void setOldTitle(String oldTitle) {
2018 this.oldTitle = oldTitle;
2019 }
2020
2021 public String getPublisherLink() {
2022 if (StringUtils.isNotBlank(this.getPublisherId())){
2023 String[] vendorDetails = this.getPublisherId().split("-");
2024 Integer vendorHeaderGeneratedIdentifier = vendorDetails.length > 0 ? Integer.parseInt(vendorDetails[0]) : 0;
2025 Integer vendorDetailAssignedIdentifier = vendorDetails.length > 1 ? Integer.parseInt(vendorDetails[1]) : 0;
2026 String oleurl = ConfigContext.getCurrentContextConfig().getProperty("ole.url");
2027 String url = oleurl + "/kr/inquiry.do?methodToCall=start&businessObjectClassName=org.kuali.ole.vnd.businessobject.VendorDetail&vendorHeaderGeneratedIdentifier=" + vendorHeaderGeneratedIdentifier + "&vendorDetailAssignedIdentifier="
2028 + vendorDetailAssignedIdentifier;
2029 return url;
2030 }
2031 return publisherLink;
2032 }
2033
2034 public void setPublisherLink(String publisherLink) {
2035 this.publisherLink = publisherLink;
2036 }
2037
2038
2039 public String getStatus() {
2040 return status;
2041 }
2042
2043 public void setStatus(String status) {
2044 this.status = status;
2045 }
2046
2047
2048 public List<OLEEResourceInstance> getOleERSInstancesForSave() {
2049 return oleERSInstancesForSave;
2050 }
2051
2052 public void setOleERSInstancesForSave(List<OLEEResourceInstance> oleERSInstancesForSave) {
2053 this.oleERSInstancesForSave = oleERSInstancesForSave;
2054 }
2055
2056 public List<OLEEResourceInstance> getOleERSInstancesForDelete() {
2057 return oleERSInstancesForDelete;
2058 }
2059
2060 public void setOleERSInstancesForDelete(List<OLEEResourceInstance> oleERSInstancesForDelete) {
2061 this.oleERSInstancesForDelete = oleERSInstancesForDelete;
2062 }
2063
2064 public List<OLEEResourceEventLog> getFilterEventLogs() {
2065 return filterEventLogs;
2066 }
2067
2068 public void setFilterEventLogs(List<OLEEResourceEventLog> filterEventLogs) {
2069 this.filterEventLogs = filterEventLogs;
2070 }
2071
2072 public boolean isSaveValidationFlag() {
2073 return saveValidationFlag;
2074 }
2075
2076 public void setSaveValidationFlag(boolean saveValidationFlag) {
2077 this.saveValidationFlag = saveValidationFlag;
2078 }
2079
2080 public boolean isAccountingLineDisclosureFlag() {
2081 return accountingLineDisclosureFlag;
2082 }
2083
2084 public void setAccountingLineDisclosureFlag(boolean accountingLineDisclosureFlag) {
2085 this.accountingLineDisclosureFlag = accountingLineDisclosureFlag;
2086 }
2087 }