public class BatchProcessBibImportServiceImpl extends Object implements BatchProcessBibImportService
Constructor and Description |
---|
BatchProcessBibImportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<EInstance> |
createEInstanceFromBibRecord(BibliographicRecord bibRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo) |
List<Instance> |
createInstanceFromBibRecord(BibliographicRecord bibRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo)
Creates instance records based on the Datamapping section values in the Profile.
|
void |
deleteFields(BibliographicRecord bibRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo)
Deleted the bib record fields based on oleBatchProcessProfileBo profile
|
Response |
deleteInstanceForBib(String id,
String docType)
deletes instance for the given bibId.
|
ResponseDocument |
findMatchingBibRecord(BibliographicRecord bibRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo,
List<BibliographicRecord> failureRecordsList)
Finds matching bib record in the database based on the match points given in the profile.
|
Instance |
findMatchingInstanceRecord(Instance instanceRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo)
Finds matching Instance record in the database based on the match points given in the profile.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
DocstoreHelperService |
getDocstoreHelperService() |
OLEBatchProcessDataHelper |
getOleBatchProcessDataHelper() |
QueryService |
getQueryService() |
BibliographicRecord |
overlayFields(BibliographicRecord inComingRecord,
BibliographicRecord matchedRecord,
OLEBatchProcessProfileBo processProfile)
Overlays in the existing bib record with the incoming bib record except protected fields.
|
RequestDocument |
performProcessBib(BibliographicRecord bibRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo,
AdditionalAttributes matchAdditionalAttributes)
Process bib according to the selected profile by deleting fields, renaming fields, setting default values, sets Bib status and staff only flag and creates request document.
|
List<RequestDocument> |
performProcessEInstance(List<EInstance> instanceRecords,
OLEBatchProcessProfileBo oleBatchProcessProfileBo,
String uuid) |
List<RequestDocument> |
performProcessInstance(List<Instance> instanceRecords,
OLEBatchProcessProfileBo oleBatchProcessProfileBo,
String uuid)
Creates Instance request documents and perform staff only treatment
|
String |
preProcessMarc(String marcFileContent)
Creates XML content based on the Incoming Marc Records.
|
void |
process001(BibliographicRecord bibliographicRecord,
OLEBatchProcessProfileBo oleBatchProcessProfileBo)
Treats 001 Datafield in the bib record based on the profile.
|
List<BibliographicRecord> |
saveBatch(Map<String,List<RequestDocument>> requestDocumentMap,
List<BibliographicRecord> misMatchReclist)
Creates Bib, Linked Instance to bib and Instance to the data base and returns list of Failure BibRecords.
|
public BatchProcessBibImportServiceImpl()
public RequestDocument performProcessBib(BibliographicRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo, AdditionalAttributes matchAdditionalAttributes) throws Exception
performProcessBib
in interface BatchProcessBibImportService
bibRecord
- oleBatchProcessProfileBo
- matchAdditionalAttributes
- Exception
public List<RequestDocument> performProcessInstance(List<Instance> instanceRecords, OLEBatchProcessProfileBo oleBatchProcessProfileBo, String uuid) throws Exception
performProcessInstance
in interface BatchProcessBibImportService
instanceRecords
- oleBatchProcessProfileBo
- uuid
- Exception
public ResponseDocument findMatchingBibRecord(BibliographicRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo, List<BibliographicRecord> failureRecordsList) throws Exception
findMatchingBibRecord
in interface BatchProcessBibImportService
bibRecord
- oleBatchProcessProfileBo
- Exception
public Instance findMatchingInstanceRecord(Instance instanceRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo) throws Exception
findMatchingInstanceRecord
in interface BatchProcessBibImportService
instanceRecord
- oleBatchProcessProfileBo
- Exception
public List<BibliographicRecord> saveBatch(Map<String,List<RequestDocument>> requestDocumentMap, List<BibliographicRecord> misMatchReclist) throws Exception
saveBatch
in interface BatchProcessBibImportService
requestDocumentMap
- misMatchReclist
- Exception
public String preProcessMarc(String marcFileContent) throws Exception
preProcessMarc
in interface BatchProcessBibImportService
marcFileContent
- Exception
public void deleteFields(BibliographicRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo)
bibRecord
- oleBatchProcessProfileBo
- public List<Instance> createInstanceFromBibRecord(BibliographicRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo) throws Exception
createInstanceFromBibRecord
in interface BatchProcessBibImportService
bibRecord
- oleBatchProcessProfileBo
- Exception
public void process001(BibliographicRecord bibliographicRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo)
process001
in interface BatchProcessBibImportService
bibliographicRecord
- oleBatchProcessProfileBo
- public BibliographicRecord overlayFields(BibliographicRecord inComingRecord, BibliographicRecord matchedRecord, OLEBatchProcessProfileBo processProfile)
overlayFields
in interface BatchProcessBibImportService
matchedRecord
- inComingRecord
- processProfile
- public Response deleteInstanceForBib(String id, String docType) throws Exception
deleteInstanceForBib
in interface BatchProcessBibImportService
id
- Exception
public List<EInstance> createEInstanceFromBibRecord(BibliographicRecord bibRecord, OLEBatchProcessProfileBo oleBatchProcessProfileBo) throws Exception
createEInstanceFromBibRecord
in interface BatchProcessBibImportService
Exception
public List<RequestDocument> performProcessEInstance(List<EInstance> instanceRecords, OLEBatchProcessProfileBo oleBatchProcessProfileBo, String uuid) throws Exception
performProcessEInstance
in interface BatchProcessBibImportService
Exception
public DocstoreHelperService getDocstoreHelperService()
public OLEBatchProcessDataHelper getOleBatchProcessDataHelper()
public QueryService getQueryService()
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.