1 package org.kuali.ole.batch.service;
2
3 import org.kuali.ole.batch.bo.OLEBatchBibImportDataObjects;
4 import org.kuali.ole.batch.bo.OLEBatchBibImportStatistics;
5 import org.kuali.ole.batch.bo.OLEBatchProcessProfileBo;
6 import org.kuali.ole.docstore.common.document.Bib;
7 import org.kuali.ole.docstore.common.document.content.bib.marc.BibMarcRecord;
8 import org.kuali.ole.docstore.common.document.content.bib.marc.OrderBibMarcRecord;
9
10 import java.util.List;
11
12
13
14
15
16
17
18
19 public interface BatchProcessBibImportService {
20
21 public Bib performProcessBib(BibMarcRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo, String staffOnly) throws Exception;
22
23 public Bib findMatchingBibRecord(BibMarcRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo, List<BibMarcRecord> failureRecordsList) throws Exception;
24
25 public String preProcessMarc(String marcFileContent) throws Exception;
26
27 public void process001(BibMarcRecord bibMarcRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo);
28
29 public BibMarcRecord overlayFields(BibMarcRecord matchedRecord, BibMarcRecord inComingRecord, OLEBatchProcessProfileBo processProfile);
30
31 List<BibMarcRecord> saveBatch(List<BibMarcRecord> bibMarcRecords, OLEBatchBibImportDataObjects oleBatchBibImportDataObjects, OLEBatchBibImportStatistics OleBatchbibImportStatistics);
32
33 List<OrderBibMarcRecord> saveOderBatch(List<OrderBibMarcRecord> orderBibMarcRecords, OLEBatchBibImportDataObjects oleBatchBibImportDataObjects, OLEBatchBibImportStatistics bibImportStatistics);
34 }