public class OLEBatchProcessDataHelper extends Object
Modifier and Type | Method and Description |
---|---|
void |
addMarcFields(BibMarcRecord record,
OLEBatchProcessProfileRenameField renameField) |
void |
createBatchBibImportFailureFile(String failureRecordData,
String batchProcessType,
String batchFileName,
String jobId) |
void |
createBatchDeleteFailureReportFile(String failureReportData,
String batchProcessType,
String batchFileName,
String jobId)
Create the failure record file in the batch process type directory for batch delete
|
void |
createBatchFailureFile(String failureRecordData,
String batchProcessType,
String batchFileName,
String jobId)
Create the failure record file in the batch process type dirctory
|
void |
createBatchProcessFile(String batchProcessType,
String batchFileName,
String fileContent,
String jobId)
Copy the upload batch file in to the batch process file directory
|
void |
createBatchProcessFile(String batchProcessType,
String mrcFileName,
String ediFileName,
String mrcfileContent,
String ediFileContent,
String jobId)
Copy the upload batch file in to the batch process file directory
|
void |
createBatchProcessFile(String batchProcessType,
String documentFileName,
String typeFileName,
String historyFileName,
String documentFileContent,
String typeFileContent,
String historyFileContent,
String jobId) |
void |
createBatchSuccessFile(String successRecordData,
String batchProcessType,
String batchFileName,
String jobId)
Create the failure record file in the batch process type directory for batch delete
|
void |
createFile(String[] content,
String batchProcessType,
String batchFileName,
String jobId) |
void |
createMarcRecord(String marcRecordContent,
String filePath) |
void |
deleteBatchFailureFile(String batchProcessType,
String batchFileName)
Delete the failure record file in the batch process type dirctory
|
void |
deleteBatchFile(String batchProcessType,
String batchFileName,
String jobId)
Delete the upload file in the batch process type dirctory
|
void |
deleteFieldsSubfields(OLEBatchProcessProfileBo oleBatchProcessProfileBo,
BibMarcRecord record)
deletes the Marc Fields and subfileds of the given BibRecord for the given Batch process profile
|
void |
deleteMarcFields(BibMarcRecord record,
OLEBatchProcessProfileDeleteField deleteField)
deletes marc fields
|
void |
deleteMarcSubFields(BibMarcRecord record,
OLEBatchProcessProfileDeleteField deleteField)
deletes marc subfields
|
List<Integer> |
findDataFieldIndex(List<DataField> dataFieldList,
String tag,
String ind1,
String ind2)
Method will return the index of the matchin tag , indicator 1 and indicator 2 for the giving dataFieldList
for null indicators only tag is matched
|
List<Integer> |
findSubFieldIndex(List<SubField> subFieldList,
String subField,
String content)
Method will return the index of the matching subfield and subfield content for the given subFieldList
For null content only the subfield will be matched
|
String |
getBatchProcessFileContent(String batchProcessType,
String batchFileName,
String jobId)
Get the upload file content from the batch process type dirctory by using job id an upload file name
|
String |
getBatchProcessFilePath(String batchProceesType)
create and return the dirctory based on batch process type in the server file system
|
String |
getBatchProcessFilePath(String batchProceesType,
String jobId)
create and return the dirctory based on batch process type in the server file system for batch delete
|
String |
getBibPathUrl(OLEBatchProcessJobDetailsBo job) |
String |
getDeletePathUrl(OLEBatchProcessJobDetailsBo job) |
String |
getExportPathUrl(OLEBatchProcessJobDetailsBo job) |
static OLEBatchProcessDataHelper |
getInstance() |
String |
getSerialCSVPathUrl(OLEBatchProcessJobDetailsBo job) |
void |
renameMarcFields(BibMarcRecord record,
OLEBatchProcessProfileRenameField renameField)
renames marc fields and indicators
|
void |
renameMarcFieldsSubFields(OLEBatchProcessProfileBo oleBatchProcessProfileBo,
BibMarcRecord record)
renames the marc fields ans subfields
|
void |
renameMarcSubFields(BibMarcRecord record,
OLEBatchProcessProfileRenameField renameField)
renames marc subfields
|
public static OLEBatchProcessDataHelper getInstance()
public void deleteFieldsSubfields(OLEBatchProcessProfileBo oleBatchProcessProfileBo, BibMarcRecord record)
oleBatchProcessProfileBo
- record
- public void deleteMarcFields(BibMarcRecord record, OLEBatchProcessProfileDeleteField deleteField)
record
- deleteField
- public void addMarcFields(BibMarcRecord record, OLEBatchProcessProfileRenameField renameField)
public void deleteMarcSubFields(BibMarcRecord record, OLEBatchProcessProfileDeleteField deleteField)
record
- deleteField
- public void renameMarcFieldsSubFields(OLEBatchProcessProfileBo oleBatchProcessProfileBo, BibMarcRecord record)
oleBatchProcessProfileBo
- record
- public void renameMarcFields(BibMarcRecord record, OLEBatchProcessProfileRenameField renameField)
record
- renameField
- public void renameMarcSubFields(BibMarcRecord record, OLEBatchProcessProfileRenameField renameField)
record
- renameField
- public List<Integer> findDataFieldIndex(List<DataField> dataFieldList, String tag, String ind1, String ind2)
dataFieldList
- tag
- ind1
- ind2
- public List<Integer> findSubFieldIndex(List<SubField> subFieldList, String subField, String content)
subFieldList
- subField
- content
- public String getBatchProcessFilePath(String batchProceesType, String jobId)
batchProceesType
- jobId
- public String getBatchProcessFilePath(String batchProceesType)
batchProceesType
- public void createBatchFailureFile(String failureRecordData, String batchProcessType, String batchFileName, String jobId) throws Exception
failureRecordData
- batchProcessType
- batchFileName
- Exception
public void createBatchSuccessFile(String successRecordData, String batchProcessType, String batchFileName, String jobId) throws Exception
successRecordData
- batchProcessType
- batchFileName
- Exception
public void createBatchDeleteFailureReportFile(String failureReportData, String batchProcessType, String batchFileName, String jobId) throws Exception
failureReportData
- batchProcessType
- batchFileName
- Exception
public void deleteBatchFailureFile(String batchProcessType, String batchFileName) throws Exception
Exception
public void createFile(String[] content, String batchProcessType, String batchFileName, String jobId) throws Exception
Exception
public void deleteBatchFile(String batchProcessType, String batchFileName, String jobId) throws Exception
Exception
public String getBatchProcessFileContent(String batchProcessType, String batchFileName, String jobId) throws Exception
Exception
public void createBatchProcessFile(String batchProcessType, String batchFileName, String fileContent, String jobId) throws Exception
Exception
public void createBatchProcessFile(String batchProcessType, String mrcFileName, String ediFileName, String mrcfileContent, String ediFileContent, String jobId) throws Exception
Exception
public void createBatchProcessFile(String batchProcessType, String documentFileName, String typeFileName, String historyFileName, String documentFileContent, String typeFileContent, String historyFileContent, String jobId) throws Exception
Exception
public void createBatchBibImportFailureFile(String failureRecordData, String batchProcessType, String batchFileName, String jobId) throws Exception
Exception
public void createMarcRecord(String marcRecordContent, String filePath) throws Exception
Exception
public String getExportPathUrl(OLEBatchProcessJobDetailsBo job)
public String getBibPathUrl(OLEBatchProcessJobDetailsBo job)
public String getDeletePathUrl(OLEBatchProcessJobDetailsBo job)
public String getSerialCSVPathUrl(OLEBatchProcessJobDetailsBo job)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.