public class BatchLoadServiceImpl extends Object implements BatchLoadService
Constructor and Description |
---|
BatchLoadServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearSystemCache() |
void |
createErrorMrkFile(String failureRawData,
Integer acqSumId) |
void |
createReqIdTextFile(List reqList,
Integer acqSumId) |
boolean |
fileSizeValidation(Long fileSize)
This method for fileSize validation
|
void |
foundAllDuplicateRecords(List<BibInfoBean> bibInfoBeanList,
List<BibInfoBean> reqFailureList,
List<BibInfoBean> titleFailureList,
List<BibInfoBean> isbnDupFailureList,
List<BibInfoBean> vendorPoNumberDupFailureList,
List bibIsbnList) |
List<BibInfoBean> |
getBibFailureRecordsList(List<BibInfoBean> isbnFailureList,
List<BibInfoBean> vendorPoNumberFailureList,
List<BibInfoBean> reqFailureList,
List<BibInfoBean> titleFailureList,
List<BibInfoBean> vendorPoNumberDupFailureList) |
List |
getBibIDList(String loadSumId) |
List<BibInfoBean> |
getBibInfoBeanList(String xmlString)
This method...
|
String |
getDestinationPath()
This method for destination path
* @return boolean
|
List |
getDocIsbnList(List bibIsbnList)
This method...
|
int |
getDupRecordsCount(List<BibInfoBean> reqFailureList,
List<BibInfoBean> titleFailureList,
List<BibInfoBean> isbnDupFailureList,
List<BibInfoBean> vendorPoNumberDupFailureList) |
Long |
getFileSize(org.apache.struts.upload.FormFile upLoadedFile) |
List<BibInfoBean> |
getIsbnFailureRecordsList(List isbnList,
List<BibInfoBean> bibInfoBeanList)
This method for find out the duplicate records based on isbn
|
int |
getNoOfDupIsbnRecords(List testIsbnList,
List bibIsbnList)
This method...
|
List<OleLoadFailureRecords> |
getOleFailureRecordsList(Map loadRecordsMap)
This method...
|
OleLoadSumRecords |
getOleLoadSumRecords(Map loadRecordsMap)
This method...retrieve the OleLoadSumRecords based on id
|
String |
getParameter(String name) |
Integer |
getPoCount(String reqIds) |
List |
getPOList(String loadSumId) |
List<BibInfoBean> |
getRequisitionFailureRecords(List reqList,
List<BibInfoBean> bibInfoBeanList)
This method...
|
List<BibInfoBean> |
getVendorPoNumberFailureRecordsList(List vendorNumberList,
List<BibInfoBean> bibInfoBeanList)
This method for find out the duplicate records based on VendorPO
|
List |
getVendorPoNumberList(List<BibInfoBean> bibInfoBeanList)
This method...
|
void |
saveAllFailureRecords(List<BibInfoBean> isbnFailureList,
List<BibInfoBean> vendorPoNumberFailureList,
List<BibInfoBean> reqFailureList,
List<BibInfoBean> titleFailureList,
List<BibInfoBean> vendorPoNumberDupFailureList,
int acqLoadSumId) |
void |
saveFailureRecord(List<BibInfoBean> bibFailureRecordsList,
Integer loadSumId,
BigDecimal errorId)
This method saving the OleLoadFailureRecords
|
void |
saveSuccessRecord(OleLoadSumRecords oleLoadSumRecords,
int dupRecords,
int poSucRecords,
int sucRecords,
String batchDiscription,
BigDecimal batchLoadProfile,
String fileName)
This method.
|
public BatchLoadServiceImpl()
public List<BibInfoBean> getBibInfoBeanList(String xmlString)
getBibInfoBeanList
in interface BatchLoadService
filePath
- public void saveFailureRecord(List<BibInfoBean> bibFailureRecordsList, Integer loadSumId, BigDecimal errorId)
saveFailureRecord
in interface BatchLoadService
bibFailureRecordsList
- loadSumId
- errorId
- public void saveSuccessRecord(OleLoadSumRecords oleLoadSumRecords, int dupRecords, int poSucRecords, int sucRecords, String batchDiscription, BigDecimal batchLoadProfile, String fileName)
saveSuccessRecord
in interface BatchLoadService
oleLoadSumRecords
- dupRecords
- sucRecords
- public boolean fileSizeValidation(Long fileSize)
fileSizeValidation
in interface BatchLoadService
fileSize
- public List getDocIsbnList(List bibIsbnList)
getDocIsbnList
in interface BatchLoadService
bibIsbnList
- public int getNoOfDupIsbnRecords(List testIsbnList, List bibIsbnList)
getNoOfDupIsbnRecords
in interface BatchLoadService
testList
- bibList
- public List<BibInfoBean> getIsbnFailureRecordsList(List isbnList, List<BibInfoBean> bibInfoBeanList)
getIsbnFailureRecordsList
in interface BatchLoadService
isbnList
- bibInfoBeanList
- public List<BibInfoBean> getVendorPoNumberFailureRecordsList(List vendorNumberList, List<BibInfoBean> bibInfoBeanList)
getVendorPoNumberFailureRecordsList
in interface BatchLoadService
VendorPOList
- bibInfoBeanList
- public OleLoadSumRecords getOleLoadSumRecords(Map loadRecordsMap)
getOleLoadSumRecords
in interface BatchLoadService
loadRecordsMap
- public List<OleLoadFailureRecords> getOleFailureRecordsList(Map loadRecordsMap)
getOleFailureRecordsList
in interface BatchLoadService
loadRecordsMap
- public List getVendorPoNumberList(List<BibInfoBean> bibInfoBeanList)
getVendorPoNumberList
in interface BatchLoadService
public List<BibInfoBean> getRequisitionFailureRecords(List reqList, List<BibInfoBean> bibInfoBeanList)
getRequisitionFailureRecords
in interface BatchLoadService
public String getDestinationPath()
getDestinationPath
in interface BatchLoadService
public Integer getPoCount(String reqIds)
public void clearSystemCache()
public void foundAllDuplicateRecords(List<BibInfoBean> bibInfoBeanList, List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> isbnDupFailureList, List<BibInfoBean> vendorPoNumberDupFailureList, List bibIsbnList)
foundAllDuplicateRecords
in interface BatchLoadService
public Long getFileSize(org.apache.struts.upload.FormFile upLoadedFile)
getFileSize
in interface BatchLoadService
public int getDupRecordsCount(List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> isbnDupFailureList, List<BibInfoBean> vendorPoNumberDupFailureList)
getDupRecordsCount
in interface BatchLoadService
public void saveAllFailureRecords(List<BibInfoBean> isbnFailureList, List<BibInfoBean> vendorPoNumberFailureList, List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> vendorPoNumberDupFailureList, int acqLoadSumId)
saveAllFailureRecords
in interface BatchLoadService
public List<BibInfoBean> getBibFailureRecordsList(List<BibInfoBean> isbnFailureList, List<BibInfoBean> vendorPoNumberFailureList, List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> vendorPoNumberDupFailureList)
getBibFailureRecordsList
in interface BatchLoadService
public void createReqIdTextFile(List reqList, Integer acqSumId)
createReqIdTextFile
in interface BatchLoadService
public void createErrorMrkFile(String failureRawData, Integer acqSumId)
createErrorMrkFile
in interface BatchLoadService
public List getPOList(String loadSumId)
getPOList
in interface BatchLoadService
public List getBibIDList(String loadSumId)
getBibIDList
in interface BatchLoadService
public String getParameter(String name)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.